検索

phrase: max: clip:
target: order:
Results of 41 - 50 of about 189 for return (0.014 sec.)
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 5838
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... when valid form data has been POSTed. # It should return an HttpResponse. form . send_email () return super ... max_length = 200 ) def get_absolute_url ( self ): return reverse ( 'author-detail' , kwargs = { 'pk' : self ... rm . instance . created_by = self . request . user return super () . form_valid ( form ) LoginRequiredMixin ... orm ) if self . request . accepts ( 'text/html' ): return response else : return JsonResponse ( form . error ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 5805
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... given template with a given context dictionary and returns an HttpResponse object with that rendered text. D ... jango does not provide a shortcut function which returns a TemplateResponse because the constructor of Tem ... ender def my_view ( request ): # View code here... return render ( request , 'myapp/index.html' , { 'foo' : ... plate ( 'myapp/index.html' ) c = { 'foo' : 'bar' } return HttpResponse ( t . render ( c , request ), content ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
django.middleware.clickjacking — Django 4.0.6 ドキュメント 5772
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... response . get ( "X-Frame-Options" ) is not None : return response # Don't set it if they used @xframe_optio ... tr ( response , "xframe_options_exempt" , False ): return response response . headers [ "X-Frame-Options" ] ... get_xframe_options_value ( request , response , ) return response def get_xframe_options_value ( self , req ... g it to vary based on the request or response. """ return getattr ( settings , "X_FRAME_OPTIONS" , "DENY" ) ...
https://man.plustar.jp/django/_modules/django/middleware/clickjacking.html - [similar]
Django's cache framework — Django 4.0.6 ドキュメント 5739
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... at page in the cache if the page is in the cache : return the cached page else : generate the page save the ... generated page in the cache ( for next time ) return the generated page Django comes with a robust cach ... " if model . _meta . app_label == 'django_cache' : return 'cache_replica' return None def db_for_write ( sel ... " if model . _meta . app_label == 'django_cache' : return 'cache_primary' return None def allow_migrate ( se ...
https://man.plustar.jp/django/topics/cache.html - [similar]
django.apps.config — Django 4.0.6 ドキュメント 5707
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... runs. self . models = None def __repr__ ( self ): return "< %s : %s >" % ( self . __class__ . __name__ , se ... o_field ( self ): from django.conf import settings return settings . DEFAULT_AUTO_FIELD @property def _is_de ... fault_auto_field_overridden ( self ): return self . __class__ . default_auto_field is not AppCo ... ] else : # For unknown reasons, sometimes the list returned by __path__ # contains duplicates that must be r ...
https://man.plustar.jp/django/_modules/django/apps/config.html - [similar]
クエリー式 — Django 4.0.6 ドキュメント 5707
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 'll need to tell Django what kind of field will be returned. Since F() does not directly support output_fiel ... rencing relational fields such as ForeignKey , F() returns the primary key value rather than a model instanc ... erates the SQL fragment for the database function. Returns a tuple (sql, params) , where sql is the SQL stri ... self , compiler , connection , ** extra_context ): return super () . as_sql ( compiler , connection , functi ...
https://man.plustar.jp/django/ref/models/expressions.html - [similar]
Geographic Feeds — Django 4.0.6 ドキュメント 5685
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... , item ): ... geometry ( obj ) ¶ Takes the object returned by get_object() and returns the feed's geometry. ... ( Feed ): def geometry ( self , obj ): # Can also return: `obj.poly`, and `obj.poly.centroid`. return obj . ... Y0, X1, Y1). item_geometry ( item ) ¶ Set this to return the geometry for each item in the feed. This can b ... Feed ( Feed ): def item_geometry ( self , obj ): # Returns the polygon. return obj . poly SyndicationFeed Su ...
https://man.plustar.jp/django/ref/contrib/gis/feeds.html - [similar]
Date-based mixins — Django 4.0.6 ドキュメント 5652
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... determined using other means. get_year_format () ¶ Returns the strftime() format to use when parsing the yea ... r. Returns year_format by default. get_year () ¶ Returns the ... ecification can be found. get_next_year ( date ) ¶ Returns a date object containing the first day of the yea ... r after the date provided. This function can also return None or raise an Http404 exception, depending on t ...
https://man.plustar.jp/django/ref/class-based-views/mixins-date-based.html - [similar]
Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 5652
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ssword = None ): # Check the username/password and return a user. ... 一方、次のように認証トークンでも表せま ... , request , token = None ): # Check the token and return a user. ... いずれの場合にせよ、 authenticate() は ... f = True user . is_superuser = True user . save () return user return None def get_user ( self , user_id ): ... try : return User . objects . get ( pk = user_id ) except User ...
https://man.plustar.jp/django/topics/auth/customizing.html - [similar]
ファイルのアップロード — Django 4.0.6 ドキュメント 5619
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... handle_uploaded_file ( request . FILES [ 'file' ]) return HttpResponseRedirect ( '/success/url/' ) else : fo ... rm = UploadFileForm () return render ( request , 'upload.html' , { 'form' : form ... form . is_valid (): # file is saved form . save () return HttpResponseRedirect ( '/success/url/' ) else : fo ... rm = ModelFormWithFileField () return render ( request , 'upload.html' , { 'form' : form ...
https://man.plustar.jp/django/topics/http/file-uploads.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 NEXT