per page, with , order by , clip by
Results of 1 - 10 of about 47 for inline (0.004 sec.)
コンテンツセキュリティポリシー 15778
コンテンツセキュリティポリシー 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 ... ngo provides predefined constants representing common CSP source expression keywords such as 'self' , 'none' , and 'unsafe-inline' . These constants are intended for use in the directive values defined in the settings. They are available through the CS ... ' . Allows execution of scripts loaded by a trusted script (e.g., one with a valid nonce or hash), without needing 'unsafe-inline' . UNSAFE_EVAL Represents 'unsafe-eval' . Allows use of eval() and similar JavaScript functions. Strongly discouraged. UNS ... AFE_HASHES Represents 'unsafe-hashes' . Allows inline event handlers and some javascript: URIs when their content hashes match a policy rule. Requires CSP Level 3+. UNSAFE_INLI ...
https://man.mtool.work/django/6.1/ref/csp.html
How to use Django's Content Security Policy 11689
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 ... script tags with 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. ... .. "django.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 inli ... ne styles will be allowed. */ </ style > < script nonce = " {{ csp_nonce }} " > // This inline JavaScript will be allowed. </ script > For external <script src="..."> and <link rel="stylesheet"> elements, use the csp_ ...
https://man.mtool.work/django/6.1/howto/csp.html
Django 2.1.15 リリースノート 8831
Django 2.1.15 リリースノート 2019年12月2日 Django 2.1.15 は 2.1.14 に含まれるセキュリティ脆弱性とデータ損失のバグを修正しています。 CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin displaying ... a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the inline model, would display a rea ... d-only view of the parent model but editable forms for the inline. Submitting these forms would not allow direct edits to the parent model, but would trigger the parent model's save() meth ... a parent model, the entire displayed form will not be editable, even if the user has permission to edit models included in inlines. This is a backwards-incompatible change, and the Django security team is aware that some users of Django were depending ...
https://man.mtool.work/django/6.1/releases/2.1.15.html
Django 2.2.8 リリースノート 8710
Django 2.2.8 リリースノート 2019年12月2日 Django 2.2.8 fixes a security issue, several bugs in 2.2.7, and adds compatibility with Python 3.8. CVE-2019-19118: Privilege escalation in the Django admin. Since Django 2.1, a Django model admin d ... isplaying a parent model with related model inlines, where the user has view-only permissions to a parent model but edit permissions to the inline model, would display a rea ... d-only view of the parent model but editable forms for the inline. Submitting these forms would not allow direct edits to the parent model, but would trigger the parent model's save() meth ... a parent model, the entire displayed form will not be editable, even if the user has permission to edit models included in inlines. This is a backwards-incompatible change, and the Django security team is aware that some users of Django were depending ...
https://man.mtool.work/django/6.1/releases/2.2.8.html
Django 1.5.11 リリースノート 8588
Django 1.5.11 リリースノート October 22, 2014 Django 1.5.11 fixes a couple regressions in the 1.5.9 security release. バグ修正 Allowed related many-to-many fields to be referenced in the admin ( #23604 ). Allowed inline and hidden reference ...
https://man.mtool.work/django/6.1/releases/1.5.11.html
Django 1.6.8 リリースノート 8588
Django 1.6.8 リリースノート October 22, 2014 Django 1.6.8 fixes a couple regressions in the 1.6.6 security release. バグ修正 Allowed related many-to-many fields to be referenced in the admin ( #23604 ). Allowed inline and hidden references ...
https://man.mtool.work/django/6.1/releases/1.6.8.html
Porting your apps from Django 0.96 to 1.0 8466
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... re Remove the core argument from your model fields. It is no longer necessary, since the equivalent functionality (part of inline editing ) is handled differently by the admin interface now. You don't have to worry about inline editing until you get to ... all in an admin.py file. Below are some more details on how to rewrite that Admin declaration into the new syntax. Use new inline syntax The new edit_inline options have all been moved to admin.py . Here's an example: Old (0.96): class Parent ( models ... . Model ): ... class Child ( models . Model ): parent = models . ForeignKey ( Parent , edit_inline = models . STACKED , num_in_admin = 3 ) New (1.0): class ChildInline ( admin . StackedInline ): model = Child extra = 3 cl ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
Django 1.4.16 リリースノート 8466
Django 1.4.16 リリースノート October 22, 2014 Django 1.4.16 fixes a couple regressions in the 1.4.14 security release and a bug preventing the use of some GEOS versions with GeoDjango. バグ修正 Allowed related many-to-many fields to be refe ... renced in the admin ( #23604 ). Allowed inline and hidden references to admin fields ( #23431 ). Fixed parsing of the GEOS version string ( #20036 ). ...
https://man.mtool.work/django/6.1/releases/1.4.16.html
Django の admin サイト 8345
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... す。あるいは、プレーンテキストと django.utils.html.escape() を使って HTML の特殊文字をエスケープすることもできます。 TabularInline は fieldsets の機能の一部しか利用できません TabularInline で fieldsets を使用する際は、機能が制限されています。 TabularInl ... id_fields 、 radio_fields 、 autocomplete_fields の 3 つがこれら自身のカスタムウィジェットを暗示するからです。 ModelAdmin. inlines 後述の InlineModelAdmin オブジェクトと ModelAdmin.get_formsets_with_inlines() を参照してください。 ModelAdmin. list_displ ... nd the delete_selected action if specified for ModelAdmin , and to protected deletion validation messages if specified for InlineModelAdmin . By default, this is None (no truncation). ModelAdmin. object_history_template カスタムンテンプレートの絶対パス ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
Django 1.2 リリースノート 8345
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... o.contrib.admin.ModelAdmin.readonly_fields has been added to enable non-editable fields in add/change pages for models and inlines. Field and calculated values can be displayed alongside editable fields. Customizable syntax highlighting You can now use ... tation is now included with Django's and is no longer hosted separately at geodjango.org . JavaScript-assisted handling of inline related objects in the admin If a user has JavaScript enabled in their browser, the interface for inline objects in the ad ... min now allows inline objects to be dynamically added and removed. Users without JavaScript-enabled browsers will see no change in the behavior ...
https://man.mtool.work/django/6.1/releases/1.2.html
PREV 1 2 3 4 5 NEXT