per page, with , order by , clip by
Results of 1 - 10 of about 86 for token (0.004 sec.)
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 10902
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... 記を参照してください)。 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
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 10807
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... 記を参照してください)。 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
独自のテンプレートタグとフィルタを作る — Django 6.1 ドキュメント 9783
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 独自のテンプレートタグとフィルタを作る ¶ 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
独自のテンプレートタグとフィルタを作る — Django 6.1 ドキュメント 9783
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 独自のテンプレートタグとフィルタを作る ¶ 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 — Django 6.1 ドキュメント 8840
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up 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
How to release Django — Django 6.1 ドキュメント 8840
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up 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) 対策 — Django 6.1 ドキュメント 8840
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クロスサイトリクエストフォージェリ (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 リリースノート — Django 6.1 ドキュメント 8840
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.1.2 リリースノート ¶ Django 1.1.2 へようこそ! This is the second "bugfix" release in the Django 1.1 series, improving the stability and per ... 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 ... ango 1.1 リリースノート 関連キーワード code number exit status tests release backwards features branch runner feature csrf token template リリースノート contain incompatibilities failures encoding cookies cookie values characters comma semi クイック検 ...
https://man.mtool.work/django/6.1/releases/1.1.2.html
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 6.1 ドキュメント 8745
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クロスサイトリクエストフォージェリ (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.4 リリースノート — Django 6.1 ドキュメント 8745
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.1.4 リリースノート ¶ Django 1.1.4 へようこそ! This is the fourth "bugfix" release in the Django 1.1 series, improving the stability and per ... ncompatible 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 ... リースノート 次のトピックへ Django 1.1.3 リリースノート 関連キーワード requests header custom exception backwards protection token XMLHttpRequest origin Rails allow request リリースノート compatibility development using features incompatible checks form ...
https://man.mtool.work/django/6.1/releases/1.1.4.html
PREV 1 2 3 4 5 6 7 8 9 NEXT