Results of 21 - 30 of about 135 for returns (0.049 sec.)
- contenttypes フレームワーク — Django 4.0.6 ドキュメント 6366
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
orresponding object. ContentType. model_class () ¶ Returns the model class represented by this ContentType in ...
ither a model class or an instance of a model, and returns the ContentType instance representing that model. ...
) ¶ Takes a variadic number of model classes, and returns a dictionary mapping the model classes to the Cont ...
models. get_by_natural_key ( app_label , model ) ¶ Returns the ContentType instance uniquely identified by th ...
-
https://man.plustar.jp/django/ref/contrib/contenttypes.html
- [similar]
- PostgreSQL specific database functions — Django 4.0.6 ドキュメント 6366
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
.functions module. RandomUUID ¶ class RandomUUID ¶ Returns a version 4 UUID. On PostgreSQL < 13, the pgcrypto ...
omUUID ()) TransactionNow ¶ class TransactionNow ¶ Returns the date and time on the database server that the ...
mplement to django.db.models.functions.Now , which returns the date and time of the current statement. Note t ...
-
https://man.plustar.jp/django/ref/contrib/postgres/functions.html
- [similar]
- Lookup API reference — Django 4.0.6 ドキュメント 6258
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
up_name will be used. get_lookup ( lookup_name ) ¶ Returns the Lookup named lookup_name registered in the cla ...
name , returning the first match. get_lookups () ¶ Returns a dictionary of each lookup name registered in the ...
e Lookup class. get_transform ( transform_name ) ¶ Returns a Transform named transform_name . The default imp ...
) ¶ Generates the SQL fragment for the expression. Returns a tuple (sql, params) , where sql is the SQL strin ...
-
https://man.plustar.jp/django/ref/models/lookups.html
- [similar]
- Django のショートカット関数 — Django 4.0.6 ドキュメント 6258
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
given template with a given context dictionary and returns an HttpResponse object with that rendered text. Dj ...
ango does not provide a shortcut function which returns a TemplateResponse because the constructor of Temp ...
( to , * args , permanent = False , ** kwargs ) ¶ Returns an HttpResponseRedirect to the appropriate URL for ...
( 'https://example.com/' ) By default, redirect() returns a temporary redirect. All of the above forms accep ...
-
https://man.plustar.jp/django/topics/http/shortcuts.html
- [similar]
- クエリを作成する — Django 4.0.6 ドキュメント 6222
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
line = models . TextField () def __str__ ( self ): return self . name class Author ( models . Model ): name = ...
ail = models . EmailField () def __str__ ( self ): return self . name class Entry ( models . Model ): blog = ...
IntegerField ( default = 5 ) def __str__ ( self ): return self . headline オブジェクトを作成する ¶ データベー ...
use an index instead of a slice. For example, this returns the first Entry in the database, after ordering en ...
-
https://man.plustar.jp/django/topics/db/queries.html
- [similar]
- TemplateResponse and SimpleTemplateResponse — Django 4.0.6 ドキュメント 6186
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
plate. Accepts a dict of context data. By default, returns the same dict . Override this method in order to c ...
e name of a template, or a list of template names. Returns the backend-dependent template object instance to ...
d SimpleTemplateResponse instance. If the callback returns a value that is not None , this will be used as th ...
d_content , runs all post-rendering callbacks, and returns the resulting response object. render() will only ...
-
https://man.plustar.jp/django/ref/template-response.html
- [similar]
- Single object mixins — Django 4.0.6 ドキュメント 6150
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
と名付けられます。 get_context_data ( ** kwargs ) ¶ Returns context data for displaying the object. このメソッ ...
ject_name() を使ってください。 get_slug_field () ¶ Returns the name of a slug field to be used to look up by ...
slug. By default this returns the value of slug_field . SingleObjectTemplateResp ...
トの接尾辞は _detail です。 get_template_names () ¶ Returns a list of candidate template names. Returns the fo ...
-
https://man.plustar.jp/django/ref/class-based-views/mixins-single-object.html
- [similar]
- Simple mixins — Django 4.0.6 ドキュメント 6113
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
itle' }) メソッド get_context_data ( ** kwargs ) ¶ Returns a dictionary representing the template context. Th ...
der_to_response ( context , ** response_kwargs ) ¶ Returns a self.response_class instance. If any keyword arg ...
for an existent template. get_template_names () ¶ Returns a list of template names to search for when render ...
-
https://man.plustar.jp/django/ref/class-based-views/mixins-simple.html
- [similar]
- モデルフィールドリファレンス — Django 4.0.6 ドキュメント 6113
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
default = FRESHMAN , ) def is_upperclass ( self ): return self . year_in_school in { self . JUNIOR , self . S ...
nSchool . FRESHMAN , ) def is_upperclass ( self ): return self . year_in_school in { self . YearInSchool . JU ...
d. storage ¶ A storage object, or a callable which returns a storage object. This handles the storage and ret ...
object, such as a str , or a callable object that returns a fresh mutable object each time, such as dict or ...
-
https://man.plustar.jp/django/ref/models/fields.html
- [similar]
- Djangoの認証システムを使用する — Django 4.0.6 ドキュメント 6113
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
orator which performs a redirect when the callable returns False : from django.contrib.auth.decorators import ...
argument: a callable that takes a User object and returns True if the user is allowed to view the page. Note ...
rPassesTestMixin , View ): def test_func ( self ): return self . request . user . email . endswith ( '@exampl ...
1 ( UserPassesTestMixin ): def test_func ( self ): return self . request . user . email . endswith ( '@exampl ...
-
https://man.plustar.jp/django/topics/auth/default.html
- [similar]