検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 57 for HttpResponse (0.017 sec.)
リクエストとレスポンスのオブジェクト — Django 4.0.6 ドキュメント 15963
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... て渡し、適切なビューを読み込みます。あらゆるビューは HttpResponse オブジェクトを返す必要があります。 このドキュメント ... では、 HttpRequest と HttpResponse オブジェクトの API を説明しています。これは django ... /' >>> q . urlencode ( safe = '/' ) 'next=/a%26b/' HttpResponse オブジェクト ¶ class HttpResponse ¶ In contrast to ... bjects, which are created automatically by Django, HttpResponse objects are your responsibility. Each view you wri ...
https://man.plustar.jp/django/ref/request-response.html - [similar]
ビューを記述する — Django 4.0.6 ドキュメント 12218
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 日付と時刻を返すビューです: from django.http import HttpResponse import datetime def current_datetime ( request ): ... l><body>It is now %s .</body></html>" % now return HttpResponse ( html ) 1 行ずつコードを見ていきましょう: 最初に、 ... Python の datetime ライブラリ とともに、クラス HttpResponse を django.http モジュールからインポートします。 次 ... にします。 このビューは、生成されたレスポンスを含む HttpResponse のオブジェクトを返します。それぞれのビュー関数には ...
https://man.plustar.jp/django/topics/http/views.html - [similar]
How to create CSV output — Django 4.0.6 ドキュメント 9119
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... オブジェクトに対して働くことを利用します。Django の HttpResponse オブジェクトもまた、ファイルライクオブジェクトなの ... に例を示します。 import csv from django.http import HttpResponse def some_view ( request ): # Create the HttpRespon ... object with the appropriate CSV header. response = HttpResponse ( content_type = 'text/csv' , headers = { 'Content ... sv.writer function expects a file-like object, and HttpResponse objects fit the bill. For each row in your CSV fil ...
https://man.plustar.jp/django/howto/outputting-csv.html - [similar]
はじめての Django アプリ作成、その 3 — Django 4.0.6 ドキュメント 9046
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... .py ¶ def detail ( request , question_id ): return HttpResponse ( "You're looking at question %s ." % question_id ... re looking at the results of question %s ." return HttpResponse ( response % question_id ) def vote ( request , qu ... estion_id ): return HttpResponse ( "You're voting on question %s ." % question_id ) ... ます: 一つはリクエストされたページのコンテンツを含む HttpResponse オブジェクトを返すこと、もう一つは Http404 のような ...
https://man.plustar.jp/django/intro/tutorial03.html - [similar]
クリックジャッキング対策 — Django 4.0.6 ドキュメント 8590
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... X-Frame-Options header to DENY for every outgoing HttpResponse . If you want any other value for this header inst ... アに指示することができます: from django.http import HttpResponse from django.views.decorators.clickjacking import x ... empt def ok_to_load_in_a_frame ( request ): return HttpResponse ( "This page is safe to load in a frame on any sit ... デコレータを提供しています: from django.http import HttpResponse from django.views.decorators.clickjacking import x ...
https://man.plustar.jp/django/ref/clickjacking.html - [similar]
索引 — Django 4.0.6 ドキュメント 8326
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... elitem__() (backends.base.SessionBase のメソッド) (HttpResponse のメソッド) __eq__() (Model のメソッド) __getattr_ ... etitem__() (backends.base.SessionBase のメソッド) (HttpResponse のメソッド) (OGRGeometry のメソッド) (QueryDict の ... メソッド) __hash__() (Model のメソッド) __init__() (HttpResponse のメソッド) (QueryDict のメソッド) (requests.Reque ... etitem__() (backends.base.SessionBase のメソッド) (HttpResponse のメソッド) (QueryDict のメソッド) __str__() (Mode ...
https://man.plustar.jp/django/genindex.html - [similar]
クラスベースビュー入門 — Django 4.0.6 ドキュメント 8194
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Django は、定義された関数に HttpRequest を渡して、 HttpResponse が返ってくることを期待していました。Django が提供す ... ドが次のようになるとすると、 from django.http import HttpResponse def my_view ( request ): if request . method == 'G ... ET' : # <view logic> return HttpResponse ( 'result' ) クラスベースのビューでは以下のようにな ... ります。 from django.http import HttpResponse from django.views import View class MyView ( View ...
https://man.plustar.jp/django/topics/class-based-views/intro.html - [similar]
翻訳 — Django 4.0.6 ドキュメント 8003
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 列としてマークされています: from django.http import HttpResponse from django.utils.translation import gettext as _ ... est ): output = _ ( "Welcome to my site." ) return HttpResponse ( output ) You could code this without using the a ... tical to the previous one: from django.http import HttpResponse from django.utils.translation import gettext def m ... output = gettext ( "Welcome to my site." ) return HttpResponse ( output ) 翻訳は、計算済みの値に適用されます。次の ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
The redirects app — Django 4.0.6 ドキュメント 7871
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e and handles the redirecting for you. It uses the HTTP response status code 301 Moved Permanently by default. イン ... are and set response_redirect_class to django.http.HttpResponseRedirect to use a 302 Moved Temporarily redirect in ... e. RedirectFallbackMiddleware ¶ You can change the HttpResponse classes used by the middleware by creating a subcl ... esponse_redirect_class . response_gone_class ¶ The HttpResponse class used when a Redirect is not found for the re ...
https://man.plustar.jp/django/ref/contrib/redirects.html - [similar]
ミドルウェア (Middleware) — Django 4.0.6 ドキュメント 7871
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ビューを呼び出す直前に呼び出されます。 None もしくは HttpResponse オブジェクトを返す必要があります。 None を返す場合 ... ドルウェアを実行し、さらに適切なビューを実行します。 HttpResponse オブジェクトを返す場合、Django はわざわざ適切なビュ ... ーを呼び出すことはしません; レスポンスミドルウェアを HttpResponse に適用し、結果を返します。 注釈 ビューが実行される ... rocess_exception() should return either None or an HttpResponse object. If it returns an HttpResponse object, the ...
https://man.plustar.jp/django/topics/http/middleware.html - [similar]
PREV 1 2 3 4 5 6 NEXT