検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 187 for request (0.058 sec.)
How to manage error reporting — Django 4.0.6 ドキュメント 7820
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... RS setting whenever your code raises a 404 and the request has a referer. It doesn't bother to email for 404s ... also ignores 404s when the referer is equal to the requested URL, since this behavior is from broken web bots ... conventional URLs that browsers and crawlers often request: import re IGNORABLE_404_URLS = [ re . compile ( r ... inkEmailsMiddleware further (for example to ignore requests coming from web crawlers), you should subclass it ...
https://man.plustar.jp/django/howto/error-reporting.html - [similar]
django.contrib.messages.middleware — Django 4.0.6 ドキュメント 7743
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e that handles temporary messages. """ def process_request ( self , request ): request . _messages = default_ ... storage ( request ) def process_response ( self , request , response ... True. """ # A higher middleware layer may return a request which does not contain # messages storage, so make ... no assumption that it will be there. if hasattr ( request , "_messages" ): unstored_messages = request . _me ...
https://man.plustar.jp/django/_modules/django/contrib/messages/middleware.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 7743
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 上、控えめな結合を取り入れます。 render() ¶ render ( request , template_name , context = None , content_type = ... of convenience as render() . Required arguments ¶ request The request object used to generate this response. ... from django.shortcuts import render def my_view ( request ): # View code here... return render ( request , ' ... e from django.template import loader def my_view ( request ): # View code here... t = loader . get_template ( ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
The "sites" framework — Django 4.0.6 ドキュメント 7567
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... y comparing the domain with the host name from the request.get_host() method. How you use this is up to you, ... hat displays a given story checks to make sure the requested story is on the current site. It looks something ... tcuts import get_current_site def article_detail ( request , article_id ): try : a = Article . objects . get ... ( id = article_id , sites__id = get_current_site ( request ) . id ) except Article . DoesNotExist : raise Htt ...
https://man.plustar.jp/django/ref/contrib/sites.html - [similar]
Signals — Django 4.0.6 ドキュメント 7535
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nyField on a model is changed. django.core.signals.request_started & django.core.signals.request_finished Sen ... t when Django starts or finishes an HTTP request. See the built-in signal documentation for a compl ... istering a signal that gets called after each HTTP request is finished. We'll be connecting to the request_fi ... : def my_callback ( sender , ** kwargs ): print ( "Request finished!" ) Notice that the function takes a send ...
https://man.plustar.jp/django/topics/signals.html - [similar]
コードのコミット — Django 4.0.6 ドキュメント 7392
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... n GitHub, patches are provided in the form of pull requests. When committing a pull request, make sure each i ... Contributors are expected to provide the best pull requests possible. In practice however, mergers - who will ... nt to have Jenkins or GitHub actions test the pull request with one of the pull request builders that doesn't ... structions. If you find yourself checking out pull requests locally more often, this git alias will be helpfu ...
https://man.plustar.jp/django/internals/contributing/committing-code.html - [similar]
django.utils.log — Django 4.0.6 ドキュメント 7359
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... m django.utils.module_loading import import_string request_logger = logging . getLogger ( "django.request" ) ... ler that emails log entries to site admins. If the request is passed as the first argument to the log record, ... request data will be provided in the email report. """ def ... PTION_REPORTER ) def emit ( self , record ): try : request = record . request subject = " %s ( %s IP): %s " % ...
https://man.plustar.jp/django/_modules/django/utils/log.html - [similar]
条件付きビュー — Django 4.0.6 ドキュメント 7184
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... used when retrieving a web page (using an HTTP GET request) to avoid sending all the data for something the c ... eware to set the ETag header. When the client next requests the same resource, it might send along a header s ... t the content has not been modified since the last request, perhaps. These two functions are passed as parame ... nd quickly) to work out if the headers in the HTTP request match those on the resource. If they don't match, ...
https://man.plustar.jp/django/topics/conditional-view-processing.html - [similar]
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 4.0.6 ドキュメント 7151
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供しています。このタイプの攻撃は ... 能の中で、 {% csrf_token %} が適切に動作するように、 RequestContext がレスポンスをレンダリングするようにしてくだ ... は contrib アプリケーションを使う場合は、これら全て RequestContext を使用するためすでに CSRF 対策はなされていま ... せん。そのため、別の方法が用意されており、各 XMLHttpRequest に対して、 X-CSRFToken という独自ヘッダーに CSRF ト ...
https://man.plustar.jp/django/ref/csrf.html - [similar]
django.utils.decorators — Django 4.0.6 ドキュメント 7008
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... cheMiddleware) # ... @cache_page(3600) def my_view(request): # ... """ return make_middleware_decorator ( mid ... _kwargs ) @wraps ( view_func ) def _wrapped_view ( request , * args , ** kwargs ): if hasattr ( middleware , ... "process_request" ): result = middleware . process_request ( reques ... cess_view" ): result = middleware . process_view ( request , view_func , args , kwargs ) if result is not Non ...
https://man.plustar.jp/django/_modules/django/utils/decorators.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT