per page, with , order by , clip by
Results of 1 - 9 of about 9 for constants (0.008 sec.)
コンテンツセキュリティポリシー 13589
コンテンツセキュリティポリシー 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 ... lement your own reporting endpoint or integrate with a third-party monitoring service. CSP 定数 Django provides predefined constants representing common CSP source expression keywords such as 'self' , 'none' , and 'unsafe-inline' . These constants are int ... inconsistent formatting, and ensures compliance with the CSP specification. class CSP [ソース] Enum providing standardized constants for common CSP source expressions. NONE Represents 'none' . Blocks loading resources for the given directive. REPORT_SAMPL ... pplying these overrides fully replaces the base CSP: they do not merge with existing rules. They can be used alongside the constants defined in CSP . 警告 Weakening or disabling a CSP policy on any page can compromise the security of the entire site. Beca ...
https://man.mtool.work/django/6.1/ref/csp.html
設定 10084
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... ly sorted to ensure consistent output in the generated headers. This example illustrates the expected structure, using the constants defined in CSP 定数 : from django.utils.csp import CSP SECURE_CSP = { "default-src" : [ CSP . SELF ], "img-src" : [ "data: ... ポートの可能性を避けるために、定数モジュールを直接インポートする必要があります。例えば: from django.contrib.messages import constants as message_constants MESSAGE_LEVEL = message_constants . DEBUG 必要であれば、上記の 定数表 にある値に従って、定数の数値を直 ... インポートの回避 設定ファイルで MESSAGE_TAGS を上書きし、組み込み定数に依存する場合、循環インポートの可能性を避けるために、 constants モジュールを直接インポートする必要があります。例えば: from django.contrib.messages import constants as message_constants M ...
https://man.mtool.work/django/6.1/ref/settings.html
Django 0.95 リリースノート 9113
Django 0.95 リリースノート Django 0.95 へようこそ! このリリースでは、2006年1月にリリースされた 0.91 から Django の開発が大幅に進んでいます。このリリースのすべての変更点を詳細に書くことはできませんが、以下にその要点を列挙します。 適合性 (sui ... re consistent and natural filtering interface for retrieving objects from the database. User-defined models, functions and constants now appear in the module namespace they were defined in. (Previously everything was magically transferred to the django.mo ...
https://man.mtool.work/django/6.1/releases/0.95.html
Pythonモジュール索引 8807
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 ... s. django.utils Django's built-in utilities. django.utils.cache Helper functions for controlling caching. django.utils.csp Constants for Content Security Policy django.utils.dateparse Functions to parse strings to datetime objects. django.utils.decorators ...
https://man.mtool.work/django/6.1/py-modindex.html
Django 2.1 リリースノート 8160
Django 2.1 リリースノート 2018年8月1日 Django 2.1 へようこそ! このリリースノートでは、 バージョン 2.1 の新機能 と、Django 2.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能を ... mands no longer allow the abbreviated forms of the --settings and --pythonpath arguments. The private django.db.models.sql.constants.QUERY_TERMS constant is removed. The get_lookup() and get_lookups() methods of the Lookup Registration API may be suitable ...
https://man.mtool.work/django/6.1/releases/2.1.html
メッセージフレームワーク 7837
メッセージフレームワーク Web アプリケーションでは非常に一般的に、フォームやその他のユーザーインプットのプロセスの後、ユーザーに向けて一過性の通知メッセージ ("フラッシュメッセージ" とも言われます) を表示する必要があります。 Django は、anonym ... あなたがすべきことはオーバーライドしようとするレベルに対してタグを提供することだけです: from django.contrib.messages import constants as messages MESSAGE_TAGS = { messages . INFO : "" , 50 : "critical" , } ビューとテンプレートでメッセージを使う add_message ...
https://man.mtool.work/django/6.1/ref/contrib/messages.html
Django 4.1 リリースノート 7837
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... icts argument of the DatabaseOperations.insert_statement() method is replaced by on_conflict that accepts django.db.models.constants.OnConflict . DatabaseOperations._convert_field_to_tz() is replaced by DatabaseOperations._convert_sql_to_tz() that accepts ...
https://man.mtool.work/django/6.1/releases/4.1.html
Django 6.0 release notes 7837
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... the SECURE_CSP and SECURE_CSP_REPORT_ONLY settings. These settings accept Python dictionaries and support Django-provided constants for clarity and safety. For example: from django.utils.csp import CSP SECURE_CSP = { "default-src" : [ CSP . SELF ], "scri ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django の機能廃止のタイムライン 7531
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... moved; use the locale-aware django.utils.formats.get_format() to get the appropriate formats. In django.forms.fields , the constants: DEFAULT_DATE_INPUT_FORMATS , DEFAULT_TIME_INPUT_FORMATS and DEFAULT_DATETIME_INPUT_FORMATS will be removed. Use django.ut ...
https://man.mtool.work/django/6.1/internals/deprecation.html
PREV 1 NEXT