検索

phrase: max: clip:
target: order:
Results of 71 - 80 of about 189 for return (0.082 sec.)
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 5237
" + 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 . ... nSchool . FRESHMAN , ) def is_upperclass ( self ): return self . year_in_school in { self . YearInSchool . J ... ber name. A .label property is added on values, to return the human-readable name. A number of custom proper ... SONField , use a function: def contact_default (): return { "email" : "to1@example.com" } contact_info = JSO ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
素の SQL 文の実行 — Django 4.0.6 ドキュメント 5204
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... u can use Manager.raw() to perform raw queries and return model instances , or you can avoid the model layer ... his method takes a raw SQL query, executes it, and returns a django.db.models.query.RawQuerySet instance. Th ... %s " , [ self . baz ]) row = cursor . fetchone () return row To protect against SQL injection, you must not ... 辞書 として得られます: def dictfetchall ( cursor ): "Return all rows from a cursor as a dict" columns = [ col ...
https://man.plustar.jp/django/topics/db/sql.html - [similar]
How to write custom lookups — Django 4.0.6 ドキュメント 5171
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... er , connection ) params = lhs_params + rhs_params return ' %s <> %s ' % ( lhs , rhs ), params NotEqual ルッ ... ction = 'ABS' @property def output_field ( self ): return FloatField () これは``abs__lte``のようなそれ以降の ... lhs_params + rhs_params + lhs_params + rhs_params return ' %s < %s AND %s > - %s ' % ( lhs , rhs , lhs , rh ... er , connection ) params = lhs_params + rhs_params return ' %s != %s ' % ( lhs , rhs ), params Field . regis ...
https://man.plustar.jp/django/howto/custom-lookups.html - [similar]
How to create CSV output — Django 4.0.6 ドキュメント 5171
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... A' , 'B' , 'C' , '"Testing"' , "Here's a quote" ]) return response コードとコメントが自分自身の意味を説明して ... def write ( self , value ): """Write the value by returning it, instead of storing in a buffer.""" return v ... = Echo () writer = csv . writer ( pseudo_buffer ) return StreamingHttpResponse ( ( writer . writerow ( row ... : csv_data } response . write ( t . render ( c )) return response この例と上述の例の唯一の違いは、この例では ...
https://man.plustar.jp/django/howto/outputting-csv.html - [similar]
TemplateResponse and SimpleTemplateResponse — Django 4.0.6 ドキュメント 5171
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... a backend-dependent template object (such as those returned by get_template() ), the name of a template, or ... A backend-dependent template object (such as those returned by get_template() ), the name of a template, or ... plate. Accepts a dict of context data. By default, returns the same dict . Override this method in order to ... a backend-dependent template object (such as those returned by get_template() ), the name of a template, or ...
https://man.plustar.jp/django/ref/template-response.html - [similar]
Djangoの認証システムを使用する — Django 4.0.6 ドキュメント 5171
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... user ) # Redirect to a success page. ... else : # Return an 'invalid login' error message. ... 認証バックエ ... uest ): if not request . user . is_authenticated : return redirect ( ' %s ?next= %s ' % ( settings . LOGIN_U ... uest ): if not request . user . is_authenticated : return render ( request , 'myapp/login_error.html' ) # .. ... uest . user . email . endswith ( '@example.com' ): return redirect ( '/login/?next= %s ' % request . path ) ...
https://man.plustar.jp/django/topics/auth/default.html - [similar]
Djangoにおけるパスワード管理 — Django 4.0.6 ドキュメント 5171
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... logs in (which may never happen if a user doesn't return to your site). In this case, you can use a "wrappe ... h ( self , sha1_hash , salt , iterations = None ): return super () . encode ( sha1_hash , salt , iterations ... ) . encode ( password , salt ) . split ( '$' , 2 ) return self . encode_sha1_hash ( sha1_hash , salt , itera ... ssword field in the database to check against, and returns True if they match, False otherwise. make_passwor ...
https://man.plustar.jp/django/topics/auth/passwords.html - [similar]
翻訳 — Django 4.0.6 ドキュメント 5171
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ( request ): output = _ ( "Welcome to my site." ) return HttpResponse ( output ) You could code this withou ... uest ): output = gettext ( "Welcome to my site." ) return HttpResponse ( output ) 翻訳は、計算済みの値に適用 ... my' , 'site.' ] output = _ ( ' ' . join ( words )) return HttpResponse ( output ) 翻訳は変数にも適用されます ... ce = 'Welcome to my site.' output = _ ( sentence ) return HttpResponse ( output ) (上の 2 つの例のように変数 ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
フォーム API — Django 4.0.6 ドキュメント 5138
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... た。 Form.errors. as_json ( escape_html = False ) ¶ Returns the errors serialized as JSON. >>> f . errors . a ... rm.errors. get_json_data ( escape_html = False ) ¶ Returns the errors as a dictionary suitable for serializi ... ng to JSON. Form.errors.as_json() returns serialized JSON, while this returns the error dat ... rm. get_initial_for_field ( field , field_name ) ¶ Returns the initial data for a form field. It retrieves t ...
https://man.plustar.jp/django/ref/forms/api.html - [similar]
Django 1.6 release notes — Django 4.0.6 ドキュメント 5138
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... example is the PostgreSQL ON UPDATE trigger which returns NULL . In such cases it is possible to set django ... s first() and last() which are convenience methods returning the first or last object matching the filters. ... a SuspiciousOperation reaches the WSGI handler to return an HttpResponseBadRequest . The DoesNotExist excep ... ibute to False . Added FormMixin.get_prefix (which returns FormMixin.prefix by default) to allow customizing ...
https://man.plustar.jp/django/releases/1.6.html - [similar]