検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 117 for Site (0.031 sec.)
The "sites" framework — Django 4.0.6 ドキュメント 15363
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ts | Index | Modules « previous | up | next » The "sites" framework ¶ Django comes with an optional "sites ... ciating objects and functionality to particular websites, and it's a holding place for the domain names an ... d "verbose" names of your Django-powered sites. Use it if your single Django installation powers ... more than one site and you need to differentiate between those sites ...
https://man.plustar.jp/django/ref/contrib/sites.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 11587
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... taken these steps, you'll be able to use the admin site by visiting the URL you hooked it into ( /admin/ , ... s AuthorAdmin ( admin . ModelAdmin ): pass admin . site . register ( Author , AuthorAdmin ) いつでも Model ... port admin from myapp.models import Author admin . site . register ( Author ) register デコレータ ¶ regist ... er ( * models , site = django.contrib.admin.sites.site ) ¶ ModelAdmin を ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
ミドルウェア — Django 4.0.6 ドキュメント 9050
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... iques (including GZipMiddleware ) are used on a website, the site may become exposed to a number of possib ... le attacks. Before using GZipMiddleware on your site, you should consider very carefully whether you ar ... _SSL_REDIRECT HTTP Strict Transport Security ¶ For sites that should only be accessed over HTTPS, you can ... time a web browser sees the HSTS header from your site, it will refuse to communicate non-securely (using ...
https://man.plustar.jp/django/ref/middleware.html - [similar]
The flatpages app — Django 4.0.6 ドキュメント 8400
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... plate. It can be associated with one, or multiple, sites. The content field may optionally be left blank i ... the flatpages app, follow these steps: Install the sites framework by adding 'django.contrib.sites' to you ... eady in there. Also make sure you've correctly set SITE_ID to the ID of the site the settings file represe ... nts. This will usually be 1 (i.e. SITE_ID = 1 , but if you're using the sites framework t ...
https://man.plustar.jp/django/ref/contrib/flatpages.html - [similar]
How to override templates — Django 4.0.6 ドキュメント 8312
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s technique to add a custom logo to the admin/base_site.html template: templates/admin/base_site.html ¶ {% ... extends "admin/base_site.html" %} {% block branding %} < img src = "link/to ... The example creates a file at templates/admin/base_site.html that uses the configured project-level templa ... tes directory to override admin/base_site.html . The new template extends admin/base_site.ht ...
https://man.plustar.jp/django/howto/overriding-templates.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 8262
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... = [ 'title' ] actions = [ make_published ] admin . site . register ( Article , ArticleAdmin ) That code wi ... n exercise to the reader. Making actions available site-wide ¶ AdminSite. add_action ( action , name = Non ... they're made available to any object in the admin site -- the export action defined above would be a good ... u can make an action globally available using AdminSite.add_action() . For example: from django.contrib im ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
django.contrib.sites.middleware — Django 4.0.6 ドキュメント 8062
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... le of contents | Index | Modules up django.contrib.sites.middleware のソースコード from django.utils.depre ... MiddlewareMixin from .shortcuts import get_current_site [ドキュメント] class CurrentSiteMiddleware ( Middl ... ewareMixin ): """ Middleware that sets `site` attribute to request object. """ def process_requ ... est ( self , request ): request . site = get_current_site ( request ) クイック検索 Last u ...
https://man.plustar.jp/django/_modules/django/contrib/sites/middleware.html - [similar]
システムチェックフレームワーク — Django 4.0.6 ドキュメント 7862
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ng the following tags: admin : Checks of any admin site declarations. async_support : Checks asynchronous- ... on signal declarations and handler registrations. sites : Checks django.contrib.sites configuration. stat ... red with multiple tags. Changed in Django 3.2: The sites tag was added. Changed in Django 4.0: The files t ... セキュリティ ¶ The security checks do not make your site secure. They do not audit code, do intrusion detec ...
https://man.plustar.jp/django/ref/checks.html - [similar]
設定 — Django 4.0.6 ドキュメント 7862
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... main requests to be excluded from the normal cross site request forgery protection. It should be set to a ... will only see its own CSRF cookie. CSRF_COOKIE_SAMESITE ¶ Default: 'Lax' The value of the SameSite flag on ... flag prevents the cookie from being sent in cross-site requests. See SESSION_COOKIE_SAMESITE for details ... about SameSite . CSRF_COOKIE_SECURE ¶ デフォルト値: False Whether ...
https://man.plustar.jp/django/ref/settings.html - [similar]
The syndication feed framework — Django 4.0.6 ドキュメント 7812
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... a syndication feed. A feed can be simple (e.g., a "site news" feed, or a basic feed displaying the latest ... xample, taken from a hypothetical police beat news site describes a feed of the latest five news items: fr ... ls import reverse from policebeat.models import NewsItem class LatestEntriesFeed ( Feed ): title = "Police ... beat site news" link = "/sitenews/" description = "Updates o ...
https://man.plustar.jp/django/ref/contrib/syndication.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT