per page, with , order by , clip by
Results of 1 - 10 of about 110 for variable (0.007 sec.)
Coding style — Django 6.1 ドキュメント 11708
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 ... entation, comments, and docstrings should be wrapped at 79 characters. These limits are checked when flake8 is run. String variable interpolation may use %-formatting , f-strings , or str.format() as appropriate, with the goal of maximizing code readabil ... ity. Final judgments of readability are left to the Merger's discretion. As a guide, f-strings should use only plain variable and property access, with prior local variable assignment for more complex cases: # Allowed f "hello { user } " f "hello { ... user . name } " # Disallowed f "hello { get_user () } " f "you are { user . age * 365.25 } days old" # Allowed with local variable assignment user = get_user () f "hello { user } " user_days_old = user . age * 365.25 f "you are { user_days_old } days ol ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Coding style — Django 6.1 ドキュメント 11530
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 ... entation, comments, and docstrings should be wrapped at 79 characters. These limits are checked when flake8 is run. String variable interpolation may use %-formatting , f-strings , or str.format() as appropriate, with the goal of maximizing code readabil ... ity. Final judgments of readability are left to the Merger's discretion. As a guide, f-strings should use only plain variable and property access, with prior local variable assignment for more complex cases: # Allowed f "hello { user } " f "hello { ... user . name } " # Disallowed f "hello { get_user () } " f "you are { user . age * 365.25 } days old" # Allowed with local variable assignment user = get_user () f "hello { user } " user_days_old = user . age * 365.25 f "you are { user_days_old } days ol ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
Django 1.8 リリースノート — Django 6.1 ドキュメント 10603
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... nSite.login_form . The base.html template has a new block usertools which contains the user-specific header. A new context variable has_permission , which gets its value from has_permission() , indicates whether the user may access the site. Foreign key ... nd() , the option name can match the command line option name (without the initial dashes) or the final option destination variable name, but in either case, the resulting option received by the command is now always the dest name specified in the comman ... querysets across different versions of Django isn't officially supported (it may work, but there's no guarantee). An extra variable that specifies the current Django version is now added to the pickled state of models and querysets, and Django raises a R ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 1.8 リリースノート — Django 6.1 ドキュメント 10603
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... nSite.login_form . The base.html template has a new block usertools which contains the user-specific header. A new context variable has_permission , which gets its value from has_permission() , indicates whether the user may access the site. Foreign key ... nd() , the option name can match the command line option name (without the initial dashes) or the final option destination variable name, but in either case, the resulting option received by the command is now always the dest name specified in the comman ... querysets across different versions of Django isn't officially supported (it may work, but there's no guarantee). An extra variable that specifies the current Django version is now added to the pickled state of models and querysets, and Django raises a R ...
https://man.mtool.work/django/6.1/releases/1.8.html
Python プログラマーのための Django テンプレート言語 — Django 6.1 ドキュメント 9511
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Python プログラマーのための Django テンプレート言語 ¶ この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点か ... としない変数よりも少し複雑です。以下に注意すべき点を示します: この変数が呼び出されたときに例外が発生した場合、例外が silent_variable_failure 属性の値が True でない限り、例外は伝播します。例外に silent_variable_failure 属性があり、その値が True である場合、 ... p })) Traceback (most recent call last): ... AssertionError : foo >>> class SilentAssertionError ( Exception ): ... silent_variable_failure = True ... >>> class PersonClass4 : ... def first_name ( self ): ... raise SilentAssertionError ... >>> p = Person ... go.core.exceptions.ObjectDoesNotExist はすべての Django データベース API の DoesNotExist 例外用の基本クラスですが、 silent_variable_failure = True を持っていることに注意してください。そのため、 Django モデルオブジェクトで Django テンプレートを使っている場 ...
https://man.mtool.work/django/6.1/ref/templates/api.html
Django 3.2.1 リリースノート — Django 6.1 ドキュメント 9321
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.2.1 リリースノート ¶ May 4, 2021 Django 3.2.1 fixes a security issue and several bugs in 3.2. CVE-2021-31542: Potential directory-traversal ... ModelAdmin.search_fields when searching against phrases with unbalanced quotes ( #32649 ). Fixed a bug in Django 3.2 where variable lookup errors were logged rendering the sitemap template if alternates were not defined ( #32648 ). Fixed a regression in ... .2, due to a separate fix using Exists to exclude() multi-valued relationships ( #32650 ). Fixed a bug in Django 3.2 where variable lookup errors were logged when rendering some admin templates ( #32681 ). Fixed a bug in Django 3.2 where an admin changel ... d relationships changelist directory traversal uploaded files path setting values list after ordered system fields against variable クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/releases/3.2.1.html
Python プログラマーのための Django テンプレート言語 — Django 6.1 ドキュメント 8953
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Python プログラマーのための Django テンプレート言語 ¶ この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点か ... としない変数よりも少し複雑です。以下に注意すべき点を示します: この変数が呼び出されたときに例外が発生した場合、例外が silent_variable_failure 属性の値が True でない限り、例外は伝播します。例外に silent_variable_failure 属性があり、その値が True である場合、 ... p })) Traceback (most recent call last): ... AssertionError : foo >>> class SilentAssertionError ( Exception ): ... silent_variable_failure = True ... >>> class PersonClass4 : ... def first_name ( self ): ... raise SilentAssertionError ... >>> p = Person ... go.core.exceptions.ObjectDoesNotExist はすべての Django データベース API の DoesNotExist 例外用の基本クラスですが、 silent_variable_failure = True を持っていることに注意してください。そのため、 Django モデルオブジェクトで Django テンプレートを使っている場 ...
https://man.mtool.work/django/6.1/ref/templates/api.html
Django 3.2.1 リリースノート — Django 6.1 ドキュメント 7670
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.2.1 リリースノート ¶ May 4, 2021 Django 3.2.1 fixes a security issue and several bugs in 3.2. CVE-2021-31542: Potential directory-traversal ... ModelAdmin.search_fields when searching against phrases with unbalanced quotes ( #32649 ). Fixed a bug in Django 3.2 where variable lookup errors were logged rendering the sitemap template if alternates were not defined ( #32648 ). Fixed a regression in ... .2, due to a separate fix using Exists to exclude() multi-valued relationships ( #32650 ). Fixed a bug in Django 3.2 where variable lookup errors were logged when rendering some admin templates ( #32681 ). Fixed a bug in Django 3.2 where an admin changel ...
https://man.mtool.work/django/6.1/releases/3.2.1.html
How to use Django's Content Security Policy — Django 6.1 ドキュメント 7670
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 プロジェクトで次のように設定しま ... to your TEMPLATES setting. This makes the generated nonce value available in the Django templates as the csp_nonce context variable: TEMPLATES = [ { "BACKEND" : "django.template.backends.django.DjangoTemplates" , "OPTIONS" : { "context_processors" : [ # ... 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 styles will be allowed. */ </ style > < script nonce = " { ...
https://man.mtool.work/django/6.1/howto/csp.html
How to use Django's Content Security Policy — Django 6.1 ドキュメント 7479
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 プロジェクトで次のように設定しま ... to your TEMPLATES setting. This makes the generated nonce value available in the Django templates as the csp_nonce context variable: TEMPLATES = [ { "BACKEND" : "django.template.backends.django.DjangoTemplates" , "OPTIONS" : { "context_processors" : [ # ... 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 styles will be allowed. */ </ style > < script nonce = " { ...
https://man.mtool.work/django/6.1/howto/csp.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT