検索

phrase: max: clip:
target: order:
Results of 31 - 40 of about 138 for Settings (0.081 sec.)
Built-in Views — Django 4.0.6 ドキュメント 6316
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... like this to your URLconf: from django.conf import settings from django.urls import re_path from django.views. ... ve # ... the rest of your URLconf goes here ... if settings . DEBUG : urlpatterns += [ re_path ( r '^media/(?P ... <path>.*)$' , serve , { 'document_root' : settings . MEDIA_ROOT , }), ] Note, the snippet assumes you ... e.g. MEDIA_URL ). If DEBUG is set to True (in your settings module), then your 404 view will never be used, an ...
https://man.plustar.jp/django/ref/views.html - [similar]
django.middleware.clickjacking — Django 4.0.6 ドキュメント 6233
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ite in a hidden frame. """ from django.conf import settings from django.utils.deprecation import MiddlewareMix ... site, set X_FRAME_OPTIONS in your project's Django settings to 'DENY'. """ def process_response ( self , reque ... d on the request or response. """ return getattr ( settings , "X_FRAME_OPTIONS" , "DENY" ) . upper () クイック ...
https://man.plustar.jp/django/_modules/django/middleware/clickjacking.html - [similar]
How to manage static files (e.g. images, JavaScript, CSS) — Django 4.0.6 ドキュ... 6185
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... g snippet to your urls.py: from django.conf import settings from django.conf.urls.static import static urlpatt ... he rest of your URLconf goes here ... ] + static ( settings . STATIC_URL , document_root = settings . STATIC_R ... pet to your ROOT_URLCONF : from django.conf import settings from django.conf.urls.static import static urlpatt ... he rest of your URLconf goes here ... ] + static ( settings . MEDIA_URL , document_root = settings . MEDIA_ROO ...
https://man.plustar.jp/django/howto/static-files/index.html - [similar]
Django の認証方法のカスタマイズ — Django 4.0.6 ドキュメント 6185
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 行えるようにしておくと良いでしょう。 次に示すのが、 settings.py で定義されたユーザー名とパスワードの変数に対して ... 成するバックエンドの例です: from django.conf import settings from django.contrib.auth.backends import BaseBacke ... from django.contrib.auth.models import User class SettingsBackend ( BaseBackend ): """ Authenticate against t ... he settings ADMIN_LOGIN and ADMIN_PASSWORD. Use the login name ...
https://man.plustar.jp/django/topics/auth/customizing.html - [similar]
ファイルの管理 — Django 4.0.6 ドキュメント 6137
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... files locally, using the MEDIA_ROOT and MEDIA_URL settings. The examples below assume that you're using these ... orage ): >>> import os >>> from django.conf import settings >>> initial_path = car . photo . path >>> car . ph ... oto . name = 'cars/chevy_ii.jpg' >>> new_path = settings . MEDIA_ROOT + car . photo . name >>> # Move the f ... instance of Storage . 例: from django.conf import settings from django.db import models from .storages import ...
https://man.plustar.jp/django/topics/files.html - [similar]
django.core.signing — Django 4.0.6 ドキュメント 6089
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... on import time import zlib from django.conf import settings from django.utils.crypto import constant_time_comp ... ing.get_cookie_signer" ): Signer = import_string ( settings . SIGNING_BACKEND ) key = force_bytes ( settings . ... base64 compressed JSON string. If key is None, use settings.SECRET_KEY instead. The hmac algorithm is the defa ... t = None , algorithm = None ): self . key = key or settings . SECRET_KEY self . sep = sep if _SEP_UNSAFE . mat ...
https://man.plustar.jp/django/_modules/django/core/signing.html - [similar]
How to deploy Django — Django 4.0.6 ドキュメント 6089
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... user database from Apache application オブジェクト Settings モジュールを設定する Applying WSGI middleware How ... o use Django with Uvicorn application オブジェクト Settings モジュールを設定する Applying ASGI middleware デプ ... SGI , but , オブジェクト , Applying , モジュール , Settings クイック検索 Last update: 2022年6月01日 « previous ...
https://man.plustar.jp/django/howto/deployment/index.html - [similar]
Django Deprecation Timeline — Django 4.0.6 ドキュメント 6089
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... he will no longer support passing pylibmc behavior settings as top-level attributes of OPTIONS . The host para ... be removed. Support for old-style middleware using settings.MIDDLEWARE_CLASSES will be removed. 1.10 ¶ See the ... thon path for the LOGIN_URL and LOGIN_REDIRECT_URL settings will be removed. Support for optparse will be drop ... form_class argument will be removed. The following settings will be removed: ALLOWED_INCLUDE_ROOTS TEMPLATE_CO ...
https://man.plustar.jp/django/internals/deprecation.html - [similar]
Django 1.2 リリースノート — Django 4.0.6 ドキュメント 6089
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ses ¶ Prior to Django 1.2, Django used a number of settings to control access to a single database. Django 1.2 ... bases, and as a result the way you define database settings has changed. Any existing Django settings file wil ... d until Django 1.4. Until then, old-style database settings will be automatically translated to the new-style ... le (pre 1.2) format, you had a number of DATABASE_ settings in your settings file. For example: DATABASE_NAME ...
https://man.plustar.jp/django/releases/1.2.html - [similar]
django.utils.translation — Django 4.0.6 ドキュメント 6053
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... # We are trying to solve two problems: (1) access settings, in particular # settings.USE_I18N, as late as pos ... h their real counterparts (once we do access the # settings). class Trans : """ The purpose of this class is t ... tr__ ( self , real_name ): from django.conf import settings if settings . USE_I18N : from django.utils.transla ...
https://man.plustar.jp/django/_modules/django/utils/translation.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 NEXT