Results of 61 - 70 of about 189 for return (0.062 sec.)
- django.contrib.postgres.validators — Django 4.0.6 ドキュメント 5302
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
in ( extra_keys )}, ) def __eq__ ( self , other ): return ( isinstance ( other , self . __class__ ) and self ...
MaxValueValidator ): def compare ( self , a , b ): return a . upper is None or a . upper > b message = _ ( " ...
MinValueValidator ): def compare ( self , a , b ): return a . lower is None or a . lower < b message = _ ( " ...
-
https://man.plustar.jp/django/_modules/django/contrib/postgres/validators.html
- [similar]
- はじめての Django アプリ作成、その 3 — Django 4.0.6 ドキュメント 5302
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
s/views.py ¶ def detail ( request , question_id ): return HttpResponse ( "You're looking at question %s ." % ...
= "You're looking at the results of question %s ." return HttpResponse ( response % question_id ) def vote ( ...
request , question_id ): return HttpResponse ( "You're voting on question %s ." % ...
q . question_text for q in latest_question_list ]) return HttpResponse ( output ) # Leave the rest of the vi ...
-
https://man.plustar.jp/django/intro/tutorial03.html
- [similar]
- はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 5302
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
sNotExist ): # Redisplay the question voting form. return render ( request , 'polls/detail.html' , { 'questi ...
ce . votes += 1 selected_choice . save () # Always return an HttpResponseRedirect after successfully dealing ...
ing posted twice if a # user hits the Back button. return HttpResponseRedirect ( reverse ( 'polls:results' , ...
Python comment above points out, you should always return an HttpResponseRedirect after successfully dealing ...
-
https://man.plustar.jp/django/intro/tutorial04.html
- [similar]
- モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 5302
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
cls ( title = title ) # do something with the book return book book = Book . create ( "Pride and Prejudice" ...
ate ( title = title ) # do something with the book return book class Book ( models . Model ): title = models ...
for value in values if value is not DEFERRED )) ) return instance def save ( self , * args , ** kwargs ): # ...
, tagline = 'Thoughts on cheese.' ) >>> b2 . id # Returns None, because b2 doesn't have an ID yet. >>> b2 . ...
-
https://man.plustar.jp/django/ref/models/instances.html
- [similar]
- セッションの使いかた — Django 4.0.6 ドキュメント 5302
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
くために使ってください。 get_session_cookie_age () ¶ Returns the value of the setting SESSION_COOKIE_AGE . Thi ...
s on usage apply. get_expire_at_browser_close () ¶ Returns either True or False , depending on whether the u ...
is more fragile. For example, you run the risk of returning a datetime that was actually a string that just ...
quest . session . get ( 'has_commented' , False ): return HttpResponse ( "You've already commented." ) c = c ...
-
https://man.plustar.jp/django/topics/http/sessions.html
- [similar]
- Django オブジェクトのシリアル化 — Django 4.0.6 ドキュメント 5302
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ent as serialize , a string or stream of data, and returns an iterator. However, here it gets slightly compl ...
icated. The objects returned by the deserialize iterator aren't regular Djang ...
f , obj ): if isinstance ( obj , YourCustomType ): return str ( obj ) return super () . default ( obj ) You ...
_by_natural_key ( self , first_name , last_name ): return self . get ( first_name = first_name , last_name = ...
-
https://man.plustar.jp/django/topics/serialization.html
- [similar]
- GEOS API — Django 4.0.6 ドキュメント 5269
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ally, there is the fromfile() factory method which returns a GEOSGeometry object from a file: >>> from djang ...
ndard Python indexing techniques. However, what is returned depends on the geometry type of the object. For ...
example, indexing on a LineString returns a coordinate tuple: >>> from django.contrib.gis.g ...
2 ] (50.0, 0.0) Whereas indexing on a Polygon will return the ring (a LinearRing object) corresponding to th ...
-
https://man.plustar.jp/django/ref/contrib/gis/geos.html
- [similar]
- django.urls utility functions — Django 4.0.6 ドキュメント 5269
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
django.urls import reverse def myview ( request ): return HttpResponseRedirect ( reverse ( 'arch-summary' , ...
nf for the current thread is used. 注釈 The string returned by reverse() is already urlquoted . For example: ...
to worry about the urlconf parameter. The function returns a ResolverMatch object that allows you to access ...
try : view ( * args , ** kwargs ) except Http404 : return HttpResponseRedirect ( '/' ) return response get_s ...
-
https://man.plustar.jp/django/ref/urlresolvers.html
- [similar]
- django.contrib.messages.middleware — Django 4.0.6 ドキュメント 5237
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
DEBUG is True. """ # A higher middleware layer may return a request which does not contain # messages storag ...
( "Not all temporary messages could be stored." ) return response クイック検索 Last update: 2022年6月01日 u ...
-
https://man.plustar.jp/django/_modules/django/contrib/messages/middleware.html
- [similar]
- ウィジェット — Django 4.0.6 ドキュメント 5237
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
なりません。 get_context ( name , value , attrs ) ¶ Returns a dictionary of values to use when rendering the ...
or this widget is required. 'value' : The value as returned by format_value() . 'attrs' : HTML attributes to ...
SelectMultiple , and SelectMultiple , which always return False because an unchecked checkbox and unselected ...
ibute とともにこのメソッドを使います。 By default, returns False for hidden widgets and True otherwise. Spec ...
-
https://man.plustar.jp/django/ref/forms/widgets.html
- [similar]