per page, with , order by , clip by
Results of 1 - 10 of about 51 for conf (0.005 sec.)
Djangoの設定 16021
Djangoの設定 Djangoの設定ファイルには、インストールしたDjangoの全ての設定が含まれています。このドキュメントでは、各設定の役割と、どのような設定を利用できるか説明していきます。 基礎 設定ファイルはモジュールレベルの変数が記述された、ただのPyt ... 必要のない限り設定を行う必要はありません。各々の設定には注意深く決められたデフォルト値が入っています。デフォルト値は django/conf/global_settings.py に記述されています。 Django が設定をコンパイルする際には、以下のようなアルゴリズムを使います: global_se ... diffsettings のドキュメントを参照してください。 Pythonのコード内で設定を参照する 自作のDjangoアプリケーションからは django.conf.settings をimportすることで設定を参照できます。例: from django.conf import settings if settings . DEBUG : # Do something . ... .. django.conf.settings はモジュールではなく、ただのオブジェクトです。そのため個々の設定は別々にimportできません。 from django.conf.setti ...
https://man.mtool.work/django/6.1/topics/settings.html
Pythonモジュール索引 9786
Pythonモジュール索引 a | c | d | f | h | m | s | t | u | v a django.apps c django.conf django.conf.urls django.conf.urls.i18n django.contrib django.contrib.admin Django's admin site. django.contrib.admindocs Django's admin documentation gen ... est.signals Signals sent during testing. django.test.utils Helpers to write custom test runners. u django.urls django.urls.conf Functions for use in URLconfs. django.utils Django's built-in utilities. django.utils.cache Helper functions for controlli ...
https://man.mtool.work/django/6.1/py-modindex.html
索引 9007
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... ッド) (models.User のメソッド) aclear() (RelatedManager のメソッド) aclear_expired() (backends.base.SessionBase のメソッド) aconfigure_user() (RemoteUserBackend のメソッド) acontains() (django.db.models.query.QuerySet モジュール) ACos (django.db.models ... s の属性) app_name (ResolverMatch の属性) app_names (ResolverMatch の属性) AppCommand (django.core.management のクラス) AppConfig (django.apps のクラス) APPEND_SLASH setting appendlist() (QueryDict のメソッド) AppRegistryNotReady apps (django.apps モ ... ジュール) apps.AdminConfig (django.contrib.admin のクラス) apps.SimpleAdminConfig (django.contrib.admin のクラス) aprefetch_related_objects() (djan ...
https://man.mtool.work/django/6.1/genindex.html
静的ファイル (画像、JavaScript、CSS など) を管理する 9007
静的ファイル (画像、JavaScript、CSS など) を管理する Websites generally need to serve additional files such as images, JavaScript, or CSS. In Django, we refer to these files as "static files". Django provides django.contrib.staticfiles to h ... い。 例えば、 STATIC_URL が static/ として定義されている場合、これを行うには urls.py に以下のコードを追加します: from django.conf import settings from django.conf.urls.static import static urlpatterns = [ # ... the rest of your URLconf goes here ... ] ... 静的ファイルをデプロイする を参照ください。 例えば、 MEDIA_URL が media/ として定義されている場合、これを行うには ROOT_URLCONF に以下のコードを追加します: from django.conf import settings from django.conf.urls.static import static urlpatterns = [ # ... ... the rest of your URLconf goes here ... ] + static ( settings . MEDIA_URL , document_root = settings . MEDIA_ROOT ) 注釈 このヘルパー関数はデバッグモ ...
https://man.mtool.work/django/6.1/howto/static-files/
Coding style 9007
Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re ... them. Python style All files should be formatted using the black auto-formatter. This will be run by pre-commit if that is configured. The project repository includes an .editorconfig file. We recommend using a text editor with EditorConfig support t ... all "isort >= 7.0.0" ...\> isort . This runs isort recursively from your current directory, modifying any files that don't conform to the guidelines. If you need to have imports out of order (to avoid a circular import, for example) use a comment lik ... ss MyModel ( models . Model ): class Direction ( models . TextChoices ): UP = "U" , "Up" DOWN = "D" , "Down" Use of django.conf.settings Modules should not in general use settings stored in django.conf.settings at the top level (i.e. evaluated when t ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 0.96 リリースノート 8692
Django 0.96 リリースノート Django 0.96 へようこそ! The primary goal for 0.96 is a cleanup and stabilization of the features introduced in 0.95. There have been a few small backwards-incompatible changes since 0.95, but the upgrade process s ... old forms system and start with the new. For more information about django.newforms , read the newforms documentation . URLconf improvements You can now use any callable as the callback in URLconfs (previously, only strings that referred to callables ... were allowed). This allows a much more natural use of URLconfs. For example, this URLconf: from django.conf.urls.defaults import * urlpatterns = patterns ( "" , ( "^myview/$" , "mysite ... .myapp.views.myview" )) can now be rewritten as: from django.conf.urls.defaults import * from mysite.myapp.views import myview urlpatterns = patterns ( "" , ( "^myview/$" , myview )) One u ...
https://man.mtool.work/django/6.1/releases/0.96.html
カスタム shell コマンドの作り方 8542
カスタム shell コマンドの作り方 Djangoの shell は、モデルと設定へのアクセスを提供する対話型の Python 環境であり、コードのテスト、クエリの実験、アプリケーションデータとのやりとりに役立ちます。 shell コマンドをカスタマイズすることで、機能を追 ... のように表示されます: 13 objects imported automatically: from django.db import connection, reset_queries, models from django.conf import settings from django.contrib.admin.models import LogEntry from django.contrib.auth.models import Group, Permission, ... ve, reverse from django.utils import timezone Changed in Django 6.0: Automatic imports of common utilities, such as django.conf.settings , were added. オーバーライドされた shell コマンドにインポートできないパスが含まれている場合、 verbosity を 1 以上 ...
https://man.mtool.work/django/6.1/howto/custom-shell.html
Django の機能廃止のタイムライン 8542
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... を使うことはできなくなります。 未保存のモデルインスタンスを関連フィルターに渡すことはできなくなります。 RemoteUserBackend.configure_user() サブクラスのシグネチャには created=True が必要になります。 django.contrib.auth.views.LogoutView および django. ... しなくなります。 django.core.validators.EmailValidator の whitelist 引数と domain_whitelist 属性が削除されます。 default_app_config モジュール変数は削除されます。 TransactionTestCase.assertQuerysetEqual() は、文字列の値と比較する際に、クエリセットに対し ... モデルの NullBooleanField は削除されます。履歴マイグレーションとの互換性を保つために、スタブフィールドが残ります。 django.conf.urls.url() は削除されます。 モデル django.contrib.postgres.fields.JSONField は削除されます。履歴マイグレーションとの互換性 ...
https://man.mtool.work/django/6.1/internals/deprecation.html
GeoDjango のインストール 8542
GeoDjango のインストール 概要 通常、GeoDjango のインストールには次のものが必要です: Python と Django 空間データベース (Spatial database) 地理空間ライブラリ (Geospatial library) 各要件の詳細とインストール手順については、以下のセクションを参照 ... ARY_PATH = /usr/local/lib システムライブラリのパスを設定する On GNU/Linux systems, there is typically a file in /etc/ld.so.conf , which may include additional paths from files in another directory, such as /etc/ld.so.conf.d . As the root user, add th ... e custom library path (like /usr/local/lib ) on a new line in ld.so.conf . This is one example of how to do so: $ sudo echo /usr/local/lib >> /etc/ld.so.conf $ sudo ldconfig For OpenSolaris users ... , the system library path may be modified using the crle utility. Run crle with no options to see the current configuration and use crle -l to set with the new library path. Be very careful when modifying the system library path: # crle ...
https://man.mtool.work/django/6.1/ref/contrib/gis/install/
URLconf で使用するための django.urls 関数 8392
URLconf で使用するための django.urls 関数 path() path ( route , view , kwargs = None , name = None ) urlpatterns に含める要素を返します。例えば: from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = ... ーンは、GETやPOSTのパラメータやドメイン名にはマッチしません。例えば、 https://www.example.com/myapp/ へのリクエストでは、URLconfは myapp/ を探します。また、 https://www.example.com/myapp/?page=3 へのリクエストでも、URLconfは同様に myapp/ を探します。 v ... ース] include ( pattern_list ) include ( (pattern_list , app_namespace) , namespace = None ) この場所に "含める" べき他のURLconfモジュールへのフルPythonインポートパスを取る関数です。オプションで、エントリが含まれる application namespace と instance nam ... ータに加えてアプリケーションの名前空間の名前を含む 2値タプルを引数として受け入れることもできます。 パラメータ : module -- URLconf モジュール(またはモジュール名) namespace ( str ) -- インクルードされる URL エントリのインスタンス名前空間 pattern_list - ...
https://man.mtool.work/django/6.1/ref/urls.html
PREV 1 2 3 4 5 6 NEXT