検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 57 for HttpResponse (0.039 sec.)
Django 1.4 documentation 7739
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... す: 一つはリクエストされたページのコ ンテンツを含む HttpResponse オブジェクトを返すこと、 もう一つは Http404 のよう ... on コードを書いてください: from django.http import HttpResponse def index ( request ): return HttpResponse ( "Hell ... れます): def detail ( request , poll_id ): return HttpResponse ( "You're looking at poll %s ." % poll_id ) def re ... sults ( request , poll_id ): return HttpResponse ( "You're looking at the results of poll %s ." % p ...
https://man.plustar.jp/django/contents.html - [similar]
セッションの使いかた — Django 4.0.6 ドキュメント 7533
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... session . get ( 'has_commented' , False ): return HttpResponse ( "You've already commented." ) c = comments . Com ... equest . session [ 'has_commented' ] = True return HttpResponse ( 'Thanks for your comment!' ) 次の次の簡単なビュー ... request . session [ 'member_id' ] = m . id return HttpResponse ( "You're logged in." ) else : return HttpResponse ... sion [ 'member_id' ] except KeyError : pass return HttpResponse ( "You're logged out." ) ふつう実際に使われる djan ...
https://man.plustar.jp/django/topics/http/sessions.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 7474
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ate with a given context dictionary and returns an HttpResponse object with that rendered text. Django does not pr ... example is equivalent to: from django.http import HttpResponse from django.template import loader def my_view ( r ... 'myapp/index.html' ) c = { 'foo' : 'bar' } return HttpResponse ( t . render ( c , request ), content_type = 'appl ... rgs , permanent = False , ** kwargs ) ¶ Returns an HttpResponseRedirect to the appropriate URL for the arguments p ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
TemplateResponse and SimpleTemplateResponse — Django 4.0.6 ドキュメント 7401
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lateResponse and SimpleTemplateResponse ¶ Standard HttpResponse objects are static structures. They are provided w ... ponse provides a way to do just that. Unlike basic HttpResponse objects, TemplateResponse objects retain the detai ... ect can be used anywhere that a normal django.http.HttpResponse can be used. It can also be used as an alternative ...
https://man.plustar.jp/django/ref/template-response.html - [similar]
Django 1.5 release notes — Django 4.0.6 ドキュメント 7342
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... pport for streaming responses via the new StreamingHttpResponse response class. GeoDjango now supports PostGIS 2.0 ... ate a streaming response by passing an iterator to HttpResponse . But this was unreliable: any middleware that acc ... enerate a streaming response with the new StreamingHttpResponse class. This class exposes a streaming_content attr ... ibute which is an iterator. Since StreamingHttpResponse does not have a content attribute, middleware that ...
https://man.plustar.jp/django/releases/1.5.html - [similar]
Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 7210
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ry can mask the origin of incoming data. Accessing HTTPResponse headers ¶ django.http.HttpResponse.headers has bee ... n renamed to _headers and HttpResponse now supports containment checking directly. So use ... objects Dictionary access to HttpRequest Accessing HTTPResponse headers ジェネリックリレーション Generic relations ...
https://man.plustar.jp/django/releases/1.0-porting-guide.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 7151
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... bjects. To provide an intermediary page, return an HttpResponse (or subclass) from your action. For example, you m ... go.core import serializers from django.http import HttpResponse def export_as_json ( modeladmin , request , querys ... et ): response = HttpResponse ( content_type = "application/json" ) serializers ... f the time, the best practice will be to return an HttpResponseRedirect and redirect the user to a view you've wri ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
Django 2.2.15 release notes — Django 4.0.6 ドキュメント 7151
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ixes ¶ Allowed setting the SameSite cookie flag in HttpResponse.delete_cookie() ( #31790 ). Fixed crash when sendi ...
https://man.plustar.jp/django/releases/2.2.15.html - [similar]
Django 3.0.9 release notes — Django 4.0.6 ドキュメント 7151
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ixes ¶ Allowed setting the SameSite cookie flag in HttpResponse.delete_cookie() ( #31790 ). Fixed crash when sendi ...
https://man.plustar.jp/django/releases/3.0.9.html - [similar]
django.utils.log — Django 4.0.6 ドキュメント 7078
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... one , exc_info = None , ): """ Log errors based on HttpResponse status. Log 5xx responses as errors and 4xx respon ... nless a level is given as a keyword argument). The HttpResponse status_code and the request are passed to the logg ...
https://man.plustar.jp/django/_modules/django/utils/log.html - [similar]
PREV 1 2 3 4 5 6 NEXT