検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 187 for request (0.031 sec.)
ファイルのアップロード — Django 4.0.6 ドキュメント 9761
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は re ... ォームをハンドリングするビューは、ファイルのデータを request.FILES というディクショナリの中に受け取ります。この ... す。そのため、上のフォームから送信されたデータには、 request.FILES['file'] でアクセスすることができます。 Note ... that request.FILES will only contain data if the request method ...
https://man.plustar.jp/django/topics/http/file-uploads.html - [similar]
django.contrib.messages.api — Django 4.0.6 ドキュメント 9476
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Exception ): pass [ドキュメント] def add_message ( request , level , message , extra_tags = "" , fail_silentl ... y = False ): """ Attempt to add a message to the request using the 'messages' app. """ try : messages = req ... _messages except AttributeError : if not hasattr ( request , "META" ): raise TypeError ( "add_message() argum ... ent must be an HttpRequest object, not " "' %s '." % request . __class__ . __ ...
https://man.plustar.jp/django/_modules/django/contrib/messages/api.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 9300
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ES setting with django.template.context_processors.request , django.contrib.auth.context_processors.auth , an ... ry. parameter_name = 'decade' def lookups ( self , request , model_admin ): """ Returns a list of tuples. The ... _ ( 'in the nineties' )), ) def queryset ( self , request , queryset ): """ Returns the filtered queryset ba ... retrievable via `self.value()`. """ # Compare the requested value (either '80s' or '90s') # to decide how to ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
リクエストとレスポンスのオブジェクト — Django 4.0.6 ドキュメント 9158
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 、Django はリクエストに関するメタデータを含んだ HttpRequest オブジェクトを生成します。それから Django は HttpR ... トを返す必要があります。 このドキュメントでは、 HttpRequest と HttpResponse オブジェクトの API を説明しています ... は django.http モジュールにて定義されています。 HttpRequest オブジェクト ¶ class HttpRequest ¶ 属性 ¶ 特に記載 ... り、全ての属性は読み取り専用だと考えてください。 HttpRequest. scheme ¶ リクエストのスキームを表す文字列です (通 ...
https://man.plustar.jp/django/ref/request-response.html - [similar]
Djangoの認証システムを使用する — Django 4.0.6 ドキュメント 8555
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 参照してください。 ユーザを認証する ¶ authenticate ( request = None , ** credentials ) ¶ 認証情報のセットを検証 ... else : # No backend authenticated the credentials request はオプションで、 HttpRequest のインスタンスを取りま ... yapp.models import BlogPost def user_gains_perms ( request , user_id ): user = get_object_or_404 ( User , pk ... r . has_perm ( 'myapp.change_blogpost' ) # False # Request new instance of User # Be aware that user.refresh_ ...
https://man.plustar.jp/django/topics/auth/default.html - [similar]
ミドルウェア (Middleware) — Django 4.0.6 ドキュメント 8346
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... configuration and initialization. def middleware ( request ): # Code to be executed for each request before # ... middleware) are called. response = get_response ( request ) # Code to be executed for each request/response ... guration and initialization. def __call__ ( self , request ): # Code to be executed for each request before # ... ware) are called. response = self . get_response ( request ) # Code to be executed for each request/response ...
https://man.plustar.jp/django/topics/http/middleware.html - [similar]
メッセージフレームワーク — Django 4.0.6 ドキュメント 8247
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ューとテンプレートでメッセージを使う ¶ add_message ( request , level , message , extra_tags = '' , fail_silentl ... o.contrib import messages messages . add_message ( request , messages . INFO , 'Hello world.' ) いくつかのショ ... 付与する標準的な方法を提供します: messages . debug ( request , ' %s SQL statements were executed.' % count ) me ... ssages . info ( request , 'Three credits remain in your account.' ) messag ...
https://man.plustar.jp/django/ref/contrib/messages.html - [similar]
Built-in Views — Django 4.0.6 ドキュメント 8028
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... on. Serving files in development ¶ static. serve ( request , path , document_root , show_indexes = False ) ¶ ... (page not found) view ¶ defaults. page_not_found ( request , exception , template_name = '404.html' ) ¶ When ... 404 view will pass two variables to the template: request_path , which is the URL that resulted in the error ... xpression in the URLconf. The 404 view is passed a RequestContext and will have access to variables supplied ...
https://man.plustar.jp/django/ref/views.html - [similar]
セッションの使いかた — Django 4.0.6 ドキュメント 7886
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ¶ SessionMiddleware を有効にすれば、それぞれの HttpRequest オブジェクト--Django のビュー関数に渡される最初の引 ... ブジェクトの session 属性を持つようになります。 この request.session には、ビューの好きな場所で、何度でも、読み ... 持っています。 __getitem__ ( key ) ¶ 例: fav_color = request.session['fav_color'] __setitem__ ( key , value ) ¶ ... 例: request.session['fav_color'] = 'blue' __delitem__ ( key ) ...
https://man.plustar.jp/django/topics/http/sessions.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 7853
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ake three arguments: The current ModelAdmin An HttpRequest representing the current request, QuerySet はユーザ ... articles function won't need the ModelAdmin or the request object, but we will use the queryset: def make_pub ... lished ( modeladmin , request , queryset ): queryset . update ( status = 'p' ) 注 ... as published' ) def make_published ( modeladmin , request , queryset ): queryset . update ( status = 'p' ) 注 ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT