per page, with , order by , clip by
Results of 1 - 10 of about 84 for style (0.007 sec.)
Coding style — Django 6.1 ドキュメント 11692
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... the tool will go ahead and fix them for you. Review the changes and re-stage for commit if you are happy with 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 ... file excludes some errors that we don't consider as gross violations. Remember that PEP 8 is only a guide, so respect the style of the surrounding code as a primary goal. An exception to PEP 8 is our rules on line lengths. We allow up to 88 character ... niqueVoters() ). Use InitialCaps for class names (or for factory functions that return classes). In docstrings, follow the style of existing docstrings and PEP 257 . In tests, use assertRaisesMessage() and assertWarnsMessage() instead of assertRaises( ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Coding style — Django 6.1 ドキュメント 11611
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Coding style ¶ Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks ¶ pre-commit is a framework for man ... the tool will go ahead and fix them for you. Review the changes and re-stage for commit if you are happy with 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 ... file excludes some errors that we don't consider as gross violations. Remember that PEP 8 is only a guide, so respect the style of the surrounding code as a primary goal. An exception to PEP 8 is our rules on line lengths. We allow up to 88 character ... niqueVoters() ). Use InitialCaps for class names (or for factory functions that return classes). In docstrings, follow the style of existing docstrings and PEP 257 . In tests, use assertRaisesMessage() and assertWarnsMessage() instead of assertRaises( ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
JavaScript code — Django 6.1 ドキュメント 11299
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » JavaScript code ¶ While most of Django core is Python, the admin and gis contrib apps contain JavaScript code. Please follow these coding standards ... when writing JavaScript code for inclusion in Django. Code style ¶ Please conform to the indentation style dictated in the .editorconfig file. We recommend using a text editor with Editor ... hen naming variables, use camelCase instead of underscore_case . Different JavaScript files sometimes use a different code style. Please try to conform to the code style of each file. Use the Biome code linter to check your code for bugs and style err ... : /  $ npm install ...\> npm install Then run the tests with: /  $ npm test ...\> npm test 目次 JavaScript code Code style JavaScript patches JavaScript tests テストを書く テストの実行 Testing from a web browser Testing from the command line 前の ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/javascript...
JavaScript code — Django 6.1 ドキュメント 10838
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » JavaScript code ¶ While most of Django core is Python, the admin and gis contrib apps contain JavaScript code. Please follow these coding standards ... when writing JavaScript code for inclusion in Django. Code style ¶ Please conform to the indentation style dictated in the .editorconfig file. We recommend using a text editor with Editor ... hen naming variables, use camelCase instead of underscore_case . Different JavaScript files sometimes use a different code style. Please try to conform to the code style of each file. Use the Biome code linter to check your code for bugs and style err ... : /  $ npm install ...\> npm install Then run the tests with: /  $ npm test ...\> npm test 目次 JavaScript code Code style JavaScript patches JavaScript tests テストを書く テストの実行 Testing from a web browser Testing from the command line 前の ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/javascript...
How to use Django's Content Security Policy — Django 6.1 ドキュメント 10202
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » How to use Django's Content Security Policy ¶ Basic config ¶ Content Security Policy (CSP) を有効にするには、Django プロジェクトで次のように設定しま ... the basic config, you need to: Include the NONCE placeholder value in the CSP settings. This only applies to script-src or style-src directives: from django.utils.csp import CSP SECURE_CSP = { "default-src" : [ CSP . SELF ], # Allow self-hosted script ... matching `nonce` attr. "script-src" : [ CSP . SELF , CSP . NONCE ], # Example of the less secure 'unsafe-inline' option. "style-src" : [ CSP . SELF , CSP . UNSAFE_INLINE ], } Add the csp() context processor to your TEMPLATES setting. This makes the g ... go.template.context_processors.csp" , ], }, }, ] In your templates, add the nonce to elements that require it: For inline <style> or <script> tags, use the csp_nonce context variable directly: < style nonce = " {{ csp_nonce }} " > /* These inline styl ...
https://man.mtool.work/django/6.1/howto/csp.html
How to use Django's Content Security Policy — Django 6.1 ドキュメント 10053
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » How to use Django's Content Security Policy ¶ Basic config ¶ Content Security Policy (CSP) を有効にするには、Django プロジェクトで次のように設定しま ... the basic config, you need to: Include the NONCE placeholder value in the CSP settings. This only applies to script-src or style-src directives: from django.utils.csp import CSP SECURE_CSP = { "default-src" : [ CSP . SELF ], # Allow self-hosted script ... matching `nonce` attr. "script-src" : [ CSP . SELF , CSP . NONCE ], # Example of the less secure 'unsafe-inline' option. "style-src" : [ CSP . SELF , CSP . UNSAFE_INLINE ], } Add the csp() context processor to your TEMPLATES setting. This makes the g ... go.template.context_processors.csp" , ], }, }, ] In your templates, add the nonce to elements that require it: For inline <style> or <script> tags, use the csp_nonce context variable directly: < style nonce = " {{ csp_nonce }} " > /* These inline styl ...
https://man.mtool.work/django/6.1/howto/csp.html
はじめての Django アプリ作成、その 6 — Django 6.1 ドキュメント 9348
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » はじめての Django アプリ作成、その 6 ¶ このチュートリアルは チュートリアル 5 の続きです。Web 投票アプリケーションのテストが完成したので、今度はスタイ ... れと同じディレクトリ構造が使われます。 先ほど作成した static ディレクトリ内に polls という名前のディレクトリを作り、その中に style.css というファイルを作成します。言い換えれば、スタイルシートは polls/static/polls/style.css にあるはずです。 AppDirectorie ... sFinder のスタティックファイルファインダがどのように動作するかによって、Djangoではこのスタティックファイルを polls/style.css として参照することができます。 静的ファイルの名前空間 テンプレートと同様に、 polls という別のサブディレクトリを作らずに ... ィレクトリの中にテンプレートを置いたのは、そういうわけなのです。 スタイルシートに次のコードを配置します ( polls/static/polls/style.css ): polls/static/polls/style.css ¶ li a { color : green ; } 次に、 polls/templates/polls/index.html の上部に追加します: ...
https://man.mtool.work/django/6.1/intro/tutorial06.html
はじめての Django アプリ作成、その 6 — Django 6.1 ドキュメント 9348
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » はじめての Django アプリ作成、その 6 ¶ このチュートリアルは チュートリアル 5 の続きです。Web 投票アプリケーションのテストが完成したので、今度はスタイ ... れと同じディレクトリ構造が使われます。 先ほど作成した static ディレクトリ内に polls という名前のディレクトリを作り、その中に style.css というファイルを作成します。言い換えれば、スタイルシートは polls/static/polls/style.css にあるはずです。 AppDirectorie ... sFinder のスタティックファイルファインダがどのように動作するかによって、Djangoではこのスタティックファイルを polls/style.css として参照することができます。 静的ファイルの名前空間 テンプレートと同様に、 polls という別のサブディレクトリを作らずに ... ィレクトリの中にテンプレートを置いたのは、そういうわけなのです。 スタイルシートに次のコードを配置します ( polls/static/polls/style.css ): polls/static/polls/style.css ¶ li a { color : green ; } 次に、 polls/templates/polls/index.html の上部に追加します: ...
https://man.mtool.work/django/6.1/intro/tutorial06.html
コンテンツセキュリティポリシー — Django 6.1 ドキュメント 8169
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » コンテンツセキュリティポリシー ¶ New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection at ... tch a policy rule. Requires CSP Level 3+. UNSAFE_INLINE ¶ Represents 'unsafe-inline' . Allows execution of inline scripts, styles, and javascript: URLs. Generally discouraged, especially for scripts. WASM_UNSAFE_EVAL ¶ Represents 'wasm-unsafe-eval' . ... ling 'unsafe-eval' for scripts. NONCE ¶ Django-specific placeholder value ( "<CSP_NONCE_SENTINEL>" ) used in script-src or style-src directives to activate nonce-based CSP. This string is replaced at runtime by the ContentSecurityPolicyMiddleware with ... ue, random value generated per HTTP response. Django supports nonces as a secure way to allow specific inline <script> or <style> elements to execute without relying on 'unsafe-inline' . Nonces are enabled by including the special placeholder NONCE in ...
https://man.mtool.work/django/6.1/ref/csp.html
コンテンツセキュリティポリシー — Django 6.1 ドキュメント 8102
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » コンテンツセキュリティポリシー ¶ New in Django 6.0. Content Security Policy (CSP) is a web security standard that helps prevent content injection at ... tch a policy rule. Requires CSP Level 3+. UNSAFE_INLINE ¶ Represents 'unsafe-inline' . Allows execution of inline scripts, styles, and javascript: URLs. Generally discouraged, especially for scripts. WASM_UNSAFE_EVAL ¶ Represents 'wasm-unsafe-eval' . ... ling 'unsafe-eval' for scripts. NONCE ¶ Django-specific placeholder value ( "<CSP_NONCE_SENTINEL>" ) used in script-src or style-src directives to activate nonce-based CSP. This string is replaced at runtime by the ContentSecurityPolicyMiddleware with ... ue, random value generated per HTTP response. Django supports nonces as a secure way to allow specific inline <script> or <style> elements to execute without relying on 'unsafe-inline' . Nonces are enabled by including the special placeholder NONCE in ...
https://man.mtool.work/django/6.1/ref/csp.html
PREV 1 2 3 4 5 6 7 8 9 NEXT