Results of 61 - 70 of about 166 for setting (0.083 sec.)
- Django 3.2.1 release notes — Django 4.0.6 ドキュメント 5531
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
oField were not allowed for the DEFAULT_AUTO_FIELD setting ( #32620 ). Fixed a regression in Django 3.2 that ...
a system check would crash on the STATICFILES_DIRS setting with a list of 2-tuples of (prefix, path) ( #32665 ...
-
https://man.plustar.jp/django/releases/3.2.1.html
- [similar]
- 複数のデータベース — Django 4.0.6 ドキュメント 5531
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ase has been selected. The following is an example settings.py snippet defining two databases -- a default Po ...
the default database. The following is an example settings.py snippet defining two non-default databases, wi ...
atabase that you haven't defined in your DATABASES setting, Django will raise a django.utils.connection.Conne ...
e routers are installed using the DATABASE_ROUTERS setting. This setting defines a list of class names, each ...
-
https://man.plustar.jp/django/topics/db/multi-db.html
- [similar]
- ファイルの管理 — Django 4.0.6 ドキュメント 5531
- " + 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 thes ...
aved. For example, you can change the file name by setting the file's name to a path relative to the file sto ...
orage ): >>> import os >>> from django.conf import settings >>> initial_path = car . photo . path >>> car . p ...
hoto . name = 'cars/chevy_ii.jpg' >>> new_path = settings . MEDIA_ROOT + car . photo . name >>> # Move the ...
-
https://man.plustar.jp/django/topics/files.html
- [similar]
- 翻訳 — Django 4.0.6 ドキュメント 5531
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
me can be changed through the LANGUAGE_COOKIE_NAME setting.) After setting the language choice, Django looks ...
ME cookie on the response: from django.conf import settings from django.http import HttpResponse from django. ...
nse = HttpResponse ( ... ) response . set_cookie ( settings . LANGUAGE_COOKIE_NAME , user_language ) You woul ...
tivate() changes the language for this thread, and setting the cookie makes this preference persist in future ...
-
https://man.plustar.jp/django/topics/i18n/translation.html
- [similar]
- How is Django Formed? — Django 4.0.6 ドキュメント 5474
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
o/__init__.py for the release. Please see notes on setting the VERSION tuple below for details on VERSION . I ...
ake it the default by changing the default_version setting in the code.djangoproject.com's trac.ini , if it's ...
For example Framework :: Django :: 3.1 . Notes on setting the VERSION tuple ¶ Django's version reporting is ...
blic Post-release New stable branch tasks Notes on setting the VERSION tuple 前のトピックへ Djangoソースコード ...
-
https://man.plustar.jp/django/internals/howto-release-django.html
- [similar]
- データベースのトランザクション — Django 4.0.6 ドキュメント 5474
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
This is known as durability and can be achieved by setting durable=True . If the atomic block is nested withi ...
ble the creation of savepoints for inner blocks by setting the savepoint argument to False . If an exception ...
o's transaction management for a given database by setting AUTOCOMMIT to False in its configuration. If you d ...
et_rollback ( rollback , using = None ) [ソース] ¶ Setting the rollback flag to True forces a rollback when e ...
-
https://man.plustar.jp/django/topics/db/transactions.html
- [similar]
- How to override templates — Django 4.0.6 ドキュメント 5372
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
s blog/post.html and blog/list.html . The relevant settings for your project would look like: from pathlib im ...
tes' ], 'APP_DIRS' : True , ... }, ] The TEMPLATES setting and BASE_DIR will already exist if you created you ...
r project using the default project template. The setting that needs to be modified is DIRS . These settings ...
template directory. First, make sure your template settings are checking inside app directories: TEMPLATES = ...
-
https://man.plustar.jp/django/howto/overriding-templates.html
- [similar]
- django — Django 4.0.6 ドキュメント 5315
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
def setup ( set_prefix = True ): """ Configure the settings (this happens as a side effect of accessing the f ...
irst setting), configure logging and populate the app registry. ...
om django.apps import apps from django.conf import settings from django.urls import set_script_prefix from dj ...
s.log import configure_logging configure_logging ( settings . LOGGING_CONFIG , settings . LOGGING ) if set_pr ...
-
https://man.plustar.jp/django/_modules/django.html
- [similar]
- How to deploy static files — Django 4.0.6 ドキュメント 5315
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e backend, you can tell collectstatic to use it by setting STATICFILES_STORAGE to the storage engine. たとえば ...
u may only have to change your STATICFILES_STORAGE setting. For details on how you'd write one of these backe ...
-
https://man.plustar.jp/django/howto/static-files/deployment.html
- [similar]
- File storage API — Django 4.0.6 ドキュメント 5315
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
he files. Defaults to the value of your MEDIA_ROOT setting. base_url ¶ URL that serves the files stored at th ...
location. Defaults to the value of your MEDIA_URL setting. file_permissions_mode ¶ The file system permissio ...
-
https://man.plustar.jp/django/ref/files/storage.html
- [similar]