per page, with , order by , clip by
Results of 1 - 10 of about 21 for config (0.005 sec.)
全文検索 13750
全文検索 django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの例では、 クエリを作成する で定義されたモデルを使用します。 参考 検索の概要については、 トピッ ... は、 INSTALLED_APPS に 'django.contrib.postgres' を含める必要があります。 SearchVector class SearchVector ( * expressions , config = None , weight = None ) [ソース] 単一のフィールドに対する検索は素晴らしいですが、制約があります。検索対象となる Entry イン ... og__tagline" ), ... ) . filter ( search = "Cheese" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]> config パラメータおよび weight パラメータの説明については、 検索設定を変更する と クエリを重み付けする を参照してください。 Searc ... hQuery class SearchQuery ( value , config = None , search_type = 'plain' ) [ソース] SearchQuery は、ユーザーが提供した用語を検索クエリオブジェクトに変換し、データベ ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
コンテンツセキュリティポリシー 11010
コンテンツセキュリティポリシー New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection attacks by restricting the sources from which content can be loaded. It plays an important role ... in a comprehensive security strategy . For configuration instructions in a Django project, see the Using CSP documentation. For an HTTP guide about CSP, see the MDN Guide o ... olicyMiddleware is enabled, Django automatically builds and attaches the appropriate headers to each response based on the configured settings , unless they have already been set by another layer. 設定 The ContentSecurityPolicyMiddleware is configured ... must include a reporting directive such as report-uri that specifies where violation data should be sent. Django supports configuring these directives via the SECURE_CSP_REPORT_ONLY settings, but reports will only be issued by the browser if the polic ...
https://man.mtool.work/django/6.1/ref/csp.html
ロギング 10740
ロギング 参考 ロギングの設定と利用 Django ロギング リファレンス Python プログラマは、素早く便利なデバッグツールとして、コード内で print() をよく使います。ロギングフレームワークを使用するのはわずかな手間がかかるだけですが、それよりはるかにエ ... リは、実用的なインターフェースから設定ファイルまで、ロギング設定のテクニックを提供しています。デフォルトでは、Django は dictConfig フォーマット を使用します。 ロギングを設定するためには、 LOGGING を使用してロギング設定の辞書を定義します。この設定には、ロ ... G の disable_existing_loggers キーの値を True にすると、全てのデフォルトの設定が無効になります(キーが存在しない場合は dictConfig のデフォルトになります)。このため、 'disable_existing_loggers': True を使う場合は注意してください。 True を設定する必要は ... existing_loggers を False に設定して、デフォルトのロガーの一部、または全てを定義しなおすこともできます。あるいは、 LOGGING_CONFIG を None に設定して、 ロギングの設定を自分で行うこと も出来ます。 ロギングは、一般的な Django の setup() 関数の一部として設 ...
https://man.mtool.work/django/6.1/topics/logging.html
How to use Django's Content Security Policy 10215
How to use Django's Content Security Policy Basic config Content Security Policy (CSP) を有効にするには、Django プロジェクトで次のように設定します: Add the CSP middleware to your MIDDLEWARE setting: MIDDLEWARE = [ # ... "django.middleware.c ... sp.ContentSecurityPolicyMiddleware" , # ... ] Configure the CSP policies in your settings.py using either SECURE_CSP or SECURE_CSP_REPORT_ONLY (or both). The CSP Settings docs ... = { "default-src" : [ CSP . SELF ], # Add more directives as needed. "report-uri" : "/path/to/reports-endpoint/" , } Nonce config To use nonces in your CSP policy, beside the basic config, you need to: Include the NONCE placeholder value in the CSP set ...
https://man.mtool.work/django/6.1/howto/csp.html
Django 3.2 リリースノート 9962
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ン系列の最新リリースのみを公式にサポートし、最新リリースを使用することを 強く推奨 します。 Django 3.2 の新機能 Automatic AppConfig discovery Most pluggable applications define an AppConfig subclass in an apps.py submodule. Many define a default_app_conf ... ig variable pointing to this class in their __init__.py . When the apps.py submodule exists and defines a single AppConfig subclass, Django now uses that configuration automatically, so you can remove default_app_config . default_app_config made ... it possible to declare only the application's path in INSTALLED_APPS (e.g. 'django.contrib.admin' ) rather than the app config's path (e.g. 'django.contrib.admin.apps.AdminConfig' ). It was introduced for backwards-compatibility with the former styl ...
https://man.mtool.work/django/6.1/releases/3.2.html
カスタム django-admin コマンドの作り方 8642
カスタム django-admin コマンドの作り方 manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリケーションに manage.py アクションを追加したくなったとします。このドキュメントでは、 このチュー ... できます ( output_transaction が True の場合、文字列は BEGIN; と COMMIT; で挟まれて出力されます)。 BaseCommand. check ( app_configs = None , tags = None , display_num_errors = False , include_deployment_checks = False , fail_level = checks.ERROR , datab ... 用します。致命的な問題は CommandError 例外を発生し、警告は stderr への出力、重要でない通知は stdout への出力となります。 app_configs および tags が共に None であった場合、デプロイメントとデータベース関連のチェック以外の全てのシステムチェックが実行されます ... 理を行う管理コマンド。 handle() を実装する代わりに、サブクラスでは、アプリケーション毎に一度ずつだけ呼び出される handle_app_config() を実装する必要があります。 AppCommand. handle_app_config ( app_config , ** options ) コマンドラインで渡されたアプリケーシ ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
Migrating email to mailers 8524
Migrating email to mailers Django 6.1 introduced the MAILERS setting, replacing EMAIL_BACKEND and several other EMAIL_* settings. It also introduced mail.mailers for obtaining configured email backend instances, replacing mail.get_connectio ... nd that Django substitutes during tests ), so can miss deprecation warnings that are only issued from the production email configuration. Consider running with deprecation warnings enabled in production to catch those deprecations. Or carefully review ... sword" : "password" , }, }, } The complete list of deprecated EMAIL_* settings and where they should be moved in a MAILERS configuration is: EMAIL_BACKEND becomes "BACKEND" . If your settings didn't define EMAIL_BACKEND , the default value was "django. ... core.mail.backends.smtp.EmailBackend" (which is also the default if a MAILERS configuration doesn't specify the "BACKEND" ). EMAIL_FILE_PATH becomes "file_path" in "OPTIONS" (with "BACKEND" set to "django.co ...
https://man.mtool.work/django/6.1/howto/mailers-migration.html
Working with Git and GitHub 8118
Working with Git and GitHub This section explains how the community can contribute code to Django via pull requests. If you're interested in how mergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a ... that you also work using GitHub. After installing Git, the first thing you should do is set up your name and email: $ git config --global user.name "Your Real Name" $ git config --global user.email "you@email.com" Note that user.name should be your re ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
アプリケーション 7864
アプリケーション Django には、設定の保存と調査の手段を提供するインストール済みアプリケーションのレジストリがあり、利用可能な モデル のリストもアクセスできます。 このレジストリは apps と呼ばれ、 django.apps で利用できます: >>> from django.ap ... ps import apps >>> apps . get_app_config ( "admin" ) . verbose_name 'Administration' プロジェクトとアプリケーション プロジェクト (project) という単語は、Django の ... りを必要とすることがあります。そのため、アプリケーションレジストリは、インストール済みアプリケーションごとのメタデータを AppConfig インスタンスに保持しています。 プロジェクトパッケージがアプリケーションとみなされず、モデルなどを持てないといった制限はあり ... アプリケーションを設定する アプリケーションを設定するためには、アプリケーション内に apps.py モジュールを作成し、そこに AppConfig のサブクラスを定義してください。 INSTALLED_APPS にアプリケーションモジュールへのドット区切りパスが含まれている場合、デフォ ...
https://man.mtool.work/django/6.1/ref/applications.html
Djangoにおけるパスワード管理 7729
Djangoにおけるパスワード管理 パスワード管理は一般的に、不必要に再発明されるべきではないものです。Djangoはユーザーのパスワードを管理するための安全で柔軟なツールセットを提供するよう努めています。このドキュメントでは、Djangoがパスワードを保存す ... 利です。フォームフィールドの help_text パラメータに直接出力を渡すことができるからです。 get_password_validators ( validator_config ) [ソース] パラメータ validator_config に基づいてバリデータオブジェクトのセットを返します。デフォルトでは、すべての関数は ... ータを使う場合は、この関数を使う必要はありません。 AUTH_PASSWORD_VALIDATORS の設定がデフォルトで使われるからです。 validator_config の構造は AUTH_PASSWORD_VALIDATORS の構造と同じです。この関数の戻り値は上記の関数の password_validators パラメータに渡すこと ...
https://man.mtool.work/django/6.1/topics/auth/passwords.html
PREV 1 2 3 NEXT