per page, with , order by , clip by
Results of 1 - 10 of about 43 for token (0.004 sec.)
Django の CSRF 保護を利用する 12895
Django の CSRF 保護を利用する CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default in the MIDDLEWARE setting. If you override that setting, remember that 'django.middleware.csrf. ... 記を参照してください)。 POST フォームを使う全てのテンプレートで、POST が内部 URL に使われる場合は、 <form> 要素の内部で csrf_token タグを使用してください。 < form method = "post" > {% csrf_token %} この方法は、外部の URL を対象にする POST フォームで使っ ... てはいけません。CSRF トークンが外部に漏れ、脆弱性の原因となります。 対応するビュー関数では、 {% csrf_token %} が正しく機能するように、レスポンスをレンダリングする際に RequestContext が使用されていることを確認してください。 render ... ンを POST するデータに忘れずに含めなければなりません。そのため、別の方法が用意されており、各 XMLHttpRequest に対して、 X-CSRFToken という独自ヘッダーに CSRF トークンの値を設定することができます ( CSRF_HEADER_NAME 設定でヘッダー名が指定できます)。多くの ...
https://man.mtool.work/django/6.1/howto/csrf.html
独自のテンプレートタグとフィルタを作る 11723
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... 、パラメータを取得して Node オブジェクトを作成する必要があります: from django import template def do_current_time ( parser , token ): try : # split_contents() knows not to split quoted strings. tag_name , format_string = token . split_contents () except ... ValueError : raise template . TemplateSyntaxError ( " %r tag requires a single argument" % token . contents . split ()[ 0 ] ) if not ( format_string [ 0 ] == format_string [ - 1 ] and format_string [ 0 ] in ( '"' , "'" ... urn CurrentTimeNode ( format_string [ 1 : - 1 ]) メモ: parser はテンプレートパーサーオブジェクトです。この例では不要です。 token.contents はタグの生の内容を表す文字列です。この例では 'current_time "%Y-%m-%d %I:%M %p"' です。 token.split_contents() メソ ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
How to release Django 10103
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... essary. Ensure your PyPI account only uses WebAuthn-based authentication factors, not TOTP (one-time codes). Create an API token following the official documentation , and set up your $HOME/.pypirc file like this: ~/.pypirc [distutils] index-servers = ... pypi django [pypi] username = __token__ password = # User-scoped or project-scoped token, to set as the default. [django] repository = https://upload.pypi.org/l ... egacy/ username = __token__ password = # A project token. Access to Django's project on Transifex , with a Manager role. Generate an API Token in th ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
クロスサイトリクエストフォージェリ (CSRF) 対策 10103
クロスサイトリクエストフォージェリ (CSRF) 対策 CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供しています。このタイプの攻撃は、訪問者のログイン情報を悪用してあなたのサイトに何らかの操作を行うことを ... ます: 他のサイトがアクセスできないランダムな秘密の値である CSRF クッキー。 CsrfViewMiddleware は django.middleware.csrf.get_token() が呼び出されると、常にこのクッキーをレスポンスと一緒に送信します。その他の場合にも送信できます。セキュリティ上の理由から ... 、secret の値はユーザがログインするたびに変更されます。 "csrfmiddlewaretoken" と名付けられた、すべての送信 POST フォームに存在する隠しフォームフィールド。 BREACH 攻撃から守るために、このフィールドの値 ... は単なる秘密ではありません。マスクを使って、レスポンスごとに異なるスクランブルをかけます。マスクは get_token() を呼び出すたびにランダムに生成されるので、フォームフィールドの値は毎回異なります。 この部分は、 csrf_token テンプレートタ ...
https://man.mtool.work/django/6.1/ref/csrf.html
Django 1.1.2 リリースノート 9749
Django 1.1.2 リリースノート Django 1.1.2 へようこそ! This is the second "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. Django 1.1.2 maintains backwards compatibility with Djang ... hat will improve protection against Cross-Site Request Forgery (CSRF) attacks. This feature requires the use of a new csrf_token template tag in all forms that Django renders. To make it easier to support both 1.1.X and 1.2.X versions of Django with t ... he same templates, we have decided to introduce the csrf_token template tag to the 1.1.X branch. In the 1.1.X branch, csrf_token does nothing - it has no effect on templates or form pro ...
https://man.mtool.work/django/6.1/releases/1.1.2.html
Django 1.1.4 リリースノート 9641
Django 1.1.4 リリースノート Django 1.1.4 へようこそ! This is the fourth "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. With one exception, Django 1.1.4 maintains backwards comp ... ds incompatible changes CSRF exception for AJAX requests Django includes a CSRF-protection mechanism, which makes use of a token inserted into outgoing forms. Middleware then checks for the token's presence on form submission, and validates it. Prior ... risks have been judged to outweigh the compatibility concerns in this case. Additionally, Django will now accept the CSRF token in the custom HTTP header X-CSRFTOKEN, as well as in the form submission itself, for ease of use with popular JavaScript t ...
https://man.mtool.work/django/6.1/releases/1.1.4.html
Django 1.11.27 リリースノート 9517
Django 1.11.27 リリースノート December 18, 2019 Django 1.11.27 fixes a security issue and a data loss bug in 1.11.26. CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email address making use ... that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avoid this vulnerability, password reset requests now compare the submitted email usi ... n of two identifiers from Unicode Technical Report 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email address on record rather than the submitted address. バグ修正 Fixed a data loss possibility in S ...
https://man.mtool.work/django/6.1/releases/1.11.27.html
Django 2.2.9 リリースノート 9517
Django 2.2.9 リリースノート December 18, 2019 Django 2.2.9 fixes a security issue and a data loss bug in 2.2.8. CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email address making use of Un ... that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avoid this vulnerability, password reset requests now compare the submitted email usi ... n of two identifiers from Unicode Technical Report 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email address on record rather than the submitted address. バグ修正 Fixed a data loss possibility in S ...
https://man.mtool.work/django/6.1/releases/2.2.9.html
Django 3.0.1 リリースノート 8946
Django 3.0.1 リリースノート December 18, 2019 Django 3.0.1 では、セキュリティの問題1件と 3.0 におけるいくつかのバグを修正しました。 CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email addr ... that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avoid this vulnerability, password reset requests now compare the submitted email usi ... n of two identifiers from Unicode Technical Report 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email address on record rather than the submitted address. バグ修正 Fixed a regression in Django 3.0 b ...
https://man.mtool.work/django/6.1/releases/3.0.1.html
Django 1.2.5 リリースノート 8823
Django 1.2.5 リリースノート Django 1.2.5 へようこそ! This is the fifth "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. With four exceptions, Django 1.2.5 maintains backwards com ... ds incompatible changes CSRF exception for AJAX requests Django includes a CSRF-protection mechanism, which makes use of a token inserted into outgoing forms. Middleware then checks for the token's presence on form submission, and validates it. Prior ... risks have been judged to outweigh the compatibility concerns in this case. Additionally, Django will now accept the CSRF token in the custom HTTP header X-CSRFTOKEN, as well as in the form submission itself, for ease of use with popular JavaScript t ...
https://man.mtool.work/django/6.1/releases/1.2.5.html
PREV 1 2 3 4 5 NEXT