Results of 21 - 30 of about 187 for request (0.055 sec.)
- 設定 — Django 4.0.6 ドキュメント 6942
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ese people the details of exceptions raised in the request/response cycle. Each item in the list should be a ...
このリストのどれとも一致しない場合、 django.http.HttpRequest.get_host() は SuspiciousOperation 例外を起こします ...
et_host() メソッドの実行時にのみ適用されます。もし request.META から直接 Host ヘッダにアクセスするコードを書い ...
can be useful for easily allowing cross-subdomain requests to be excluded from the normal cross site request ...
-
https://man.plustar.jp/django/ref/settings.html
- [similar]
- Django's cache framework — Django 4.0.6 ドキュメント 6942
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
bsites is, well, they're dynamic. Each time a user requests a page, the web server makes all sorts of calcula ...
pages so they don't have to be calculated for each request. For convenience, Django offers different levels o ...
GET and HEAD responses with status 200, where the request and response headers allow. Responses to requests ...
ed separately. This middleware expects that a HEAD request is answered with the same response headers as the ...
-
https://man.plustar.jp/django/topics/cache.html
- [similar]
- The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 6833
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
r() method which marshals a context and possibly a request into a Context and delegates the rendering to the ...
ate the context when a template is rendered with a request. These callables take a request object as their ar ...
nto the context. It defaults to an empty list. See RequestContext for more information. debug is a boolean th ...
: None , 'False' : False , 'update' : 'value' , }) RequestContext を使う ¶ class RequestContext ( request , d ...
-
https://man.plustar.jp/django/ref/templates/api.html
- [similar]
- django.contrib.sites.middleware — Django 4.0.6 ドキュメント 6800
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
in ): """ Middleware that sets `site` attribute to request object. """ def process_request ( self , request ) ...
: request . site = get_current_site ( request ) クイック検索 ...
-
https://man.plustar.jp/django/_modules/django/contrib/sites/middleware.html
- [similar]
- Signals — Django 4.0.6 ドキュメント 6756
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ould be connected for each new AppConfig instance. Request/response signals ¶ Signals sent by the core framew ...
ork when processing a request. request_started ¶ django.core.signals. request_st ...
arted ¶ Sent when Django begins processing an HTTP request. このシグナルとともに送信される引数は以下の通りです ...
core.handlers.wsgi.WsgiHandler -- that handled the request. environ The environ dictionary provided to the re ...
-
https://man.plustar.jp/django/ref/signals.html
- [similar]
- Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 6657
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
place use of uploaded files -- that is, entries in request.FILES -- as simple dictionaries with the new Uploa ...
longer works. Thus, in a view like: def my_view ( request ): f = request . FILES [ 'file_field_name' ] ... . ...
ango.views.i18n.set_language() now requires a POST request ¶ Previously, a GET request was used. The old beha ...
sed to display the site) could be changed by a GET request, which is against the HTTP specification's recomme ...
-
https://man.plustar.jp/django/releases/1.0-porting-guide.html
- [similar]
- ビューを記述する — Django 4.0.6 ドキュメント 6657
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
w for short, is a Python function that takes a web request and returns a web response. This response can be t ...
ttpResponse import datetime def current_datetime ( request ): now = datetime . datetime . now () html = "<htm ...
。これがビュー関数です。それぞれのビュー関数は、 HttpRequest のオブジェクトを第 1 引数として受け取り、一般的には ...
request と名付けられます。 ビュー関数の名前は重要ではありま ...
-
https://man.plustar.jp/django/topics/http/views.html
- [similar]
- Django 1.9 リリースノート — Django 4.0.6 ドキュメント 6580
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
はサポートしない。 handle_no_permission() メソッドは request 引数を取らない。現在の request は self.request でア ...
nc() は user 引数を取らない。現在のユーザーは self.request.user でアクセス可能である。 permission_required 属 ...
is only populated on login pages instead of every request in the session. The django.contrib.auth.views.pass ...
django.contrib.sites ¶ get_current_site() が新たに request.get_host() が domain:port という形式 (例: example. ...
-
https://man.plustar.jp/django/releases/1.9.html
- [similar]
- View decorators — Django 4.0.6 ドキュメント 6580
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
n be used to restrict access to views based on the request method. These decorators will return a django.http ...
the conditions are not met. require_http_methods ( request_method_list ) ¶ Decorator to require that a view o ...
nly accepts particular request methods. Usage: from django.views.decorators.http ...
re_http_methods ([ "GET" , "POST" ]) def my_view ( request ): # I can assume now that only GET or POST reques ...
-
https://man.plustar.jp/django/topics/http/decorators.html
- [similar]
- Advanced testing topics — Django 4.0.6 ドキュメント 6405
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
evious | up | next » Advanced testing topics ¶ The request factory ¶ class RequestFactory ¶ The RequestFactor ...
. However, instead of behaving like a browser, the RequestFactory provides a way to generate a request instan ...
uts, testing for specific outputs. The API for the RequestFactory is a slightly restricted subset of the test ...
ollow . Since this is just a factory for producing requests, it's up to you to handle the response. It does n ...
-
https://man.plustar.jp/django/topics/testing/advanced.html
- [similar]