検索

phrase: max: clip:
target: order:
Results of 51 - 60 of about 189 for return (0.014 sec.)
Admin actions — Django 4.0.6 ドキュメント 5586
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... , choices = STATUS_CHOICES ) def __str__ ( self ): return self . title A common task we might perform with a ... ctions, especially more complex ones, will need to return intermediate pages. For example, the built-in dele ... selected objects. To provide an intermediary page, return an HttpResponse (or subclass) from your action. Fo ... erialize ( "json" , queryset , stream = response ) return response Generally, something like the above isn't ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
PostgreSQL specific database functions — Django 4.0.6 ドキュメント 5521
" + 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 pgcrypt ... omUUID ()) TransactionNow ¶ class TransactionNow ¶ Returns the date and time on the database server that the ... n started. If you are not in a transaction it will return the date and time of the current statement. This i ... mplement to django.db.models.functions.Now , which returns the date and time of the current statement. Note ...
https://man.plustar.jp/django/ref/contrib/postgres/functions.html - [similar]
クラスベースビュー入門 — Django 4.0.6 ドキュメント 5521
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t ): if request . method == 'GET' : # <view logic> return HttpResponse ( 'result' ) クラスベースのビューでは ... View ): def get ( self , request ): # <view logic> return HttpResponse ( 'result' ) Django の URL リゾルバは ... greeting = "Good Day" def get ( self , request ): return HttpResponse ( self . greeting ) サブクラスでは次の ... form . is_valid (): # <process form cleaned data> return HttpResponseRedirect ( '/success/' ) else : form = ...
https://man.plustar.jp/django/topics/class-based-views/intro.html - [similar]
条件付きビュー — Django 4.0.6 ドキュメント 5488
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nt, a 412 status code (Precondition Failed) may be returned. When you need more fine-grained control you may ... rap. The function passed last_modified_func should return a standard datetime value specifying the last time ... . The function passed to the etag decorator should return a string representing the ETag for the resource, o ... would be: def latest_entry ( request , blog_id ): return Entry . objects . filter ( blog = blog_id ) . late ...
https://man.plustar.jp/django/topics/conditional-view-processing.html - [similar]
django.contrib.auth — Django 4.0.6 ドキュメント 5455
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... m() and the authentication in the Django admin all return False for inactive users. is_superuser ¶ 真偽値です ... を返します。 get_user_permissions ( obj = None ) ¶ Returns a set of permission strings that the user has dir ... ectly. If obj is passed in, only returns the user permissions for this specific object. ge ... ンのみを返します。 has_perm ( perm , obj = None ) ¶ Returns True if the user has the specified permission, wh ...
https://man.plustar.jp/django/ref/contrib/auth.html - [similar]
Database instrumentation — Django 4.0.6 ドキュメント 5455
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ... with connection . execute_wrapper ( blocker ): return render ( request , template_name , context ) The p ... = e raise else : current_query [ 'status' ] = 'ok' return result finally : duration = time . monotonic () - ... .execute_wrapper() ¶ execute_wrapper ( wrapper ) ¶ Returns a context manager which, when entered, installs a ... ed to call execute(sql, params, many, context) and return the return value of that call. 目次 Database instr ...
https://man.plustar.jp/django/topics/db/instrumentation.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 5401
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... mation is as follows: All keyword parameter names are turned to lowercase, and underscores are converted to ... r applying str() to it. get_max_age ( response ) ¶ Returns the max-age from the response Cache-Control heade ... _prefix = None , method = 'GET' , cache = None ) ¶ Returns a cache key based on the request path. It can be ... ed, the page needs to be rebuilt, so this function returns None . learn_cache_key ( request , response , cac ...
https://man.plustar.jp/django/ref/utils.html - [similar]
Django 3.0 リリースノート — Django 4.0.6 ドキュメント 5368
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... anyField s. The new UserManager.with_perm() method returns users that have the specified permission. The def ... alse and an exception occurs, the test client will return a 500 response with the attribute exc_info , a tup ... tabaseIntrospection.get_field_type() may no longer return tuples. If the database can create foreign keys in ... an_create_inline_fk = False . DatabaseFeatures.can_return_id_from_insert and can_return_ids_from_bulk_insert ...
https://man.plustar.jp/django/releases/3.0.html - [similar]
ミドルウェア (Middleware) — Django 4.0.6 ドキュメント 5368
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... each request/response after # the view is called. return response return middleware もしくは、インスタンスを ... each request/response after # the view is called. return response Django によって渡される get_response 呼び ... ew raises an exception. process_exception() should return either None or an HttpResponse object. If it retur ... dleware will be applied and the resulting response returned to the browser. Otherwise, default exception han ...
https://man.plustar.jp/django/topics/http/middleware.html - [similar]
Django 1.4 documentation 5335
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ield ( max_length = 70 ) def __unicode__ ( self ): return self . full_name class Article ( models . Model ): ... ForeignKey ( Reporter ) def __unicode__ ( self ): return self . headline モデルのインストール ¶ 次に、Djang ... ticle . objects . filter ( pub_date__year = year ) return render_to_response ( 'news/year_archive.html' , { ... models . Model ): # ... def __unicode__ ( self ): return self . question class Choice ( models . Model ): # ...
https://man.plustar.jp/django/contents.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 NEXT