per page, with , order by , clip by
Results of 1 - 10 of about 26 for exempt (0.004 sec.)
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 12447
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... ます。 解決策: ミドルウェアを無効にして、必要なビュー全てに csrf_protect を適用するのではなく、ミドルウェアを有効にして csrf_exempt() を使ってください。 CsrfViewMiddleware.process_view() が使われない場合のトークン設定 ¶ ビューが実行される前に CsrfViewMid ... SRFトークンが必要となる場合。 解決策: requires_csrf_token() を使用する 保護されていないビューにCSRFトークンを含める ¶ csrf_exempt によって除外され、保護されていないビューがあるかもしれない中で、CSRFトークンを含めなければならないこともあります。 解決策: ... csrf_exempt() の後に続けて requires_csrf_token() を使用してください (つまり、 requires_csrf_token が最も内側のデコレータとなるようにし ...
https://man.mtool.work/django/6.1/howto/csrf.html
Django の CSRF 保護を利用する — Django 6.1 ドキュメント 11555
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の CSRF 保護を利用する ¶ CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default i ... ます。 解決策: ミドルウェアを無効にして、必要なビュー全てに csrf_protect を適用するのではなく、ミドルウェアを有効にして csrf_exempt() を使ってください。 CsrfViewMiddleware.process_view() が使われない場合のトークン設定 ¶ ビューが実行される前に CsrfViewMid ... SRFトークンが必要となる場合。 解決策: requires_csrf_token() を使用する 保護されていないビューにCSRFトークンを含める ¶ csrf_exempt によって除外され、保護されていないビューがあるかもしれない中で、CSRFトークンを含めなければならないこともあります。 解決策: ... csrf_exempt() の後に続けて requires_csrf_token() を使用してください (つまり、 requires_csrf_token が最も内側のデコレータとなるようにし ...
https://man.mtool.work/django/6.1/howto/csrf.html
ファイルのアップロード — Django 6.1 ドキュメント 11323
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ファイルのアップロード ¶ Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト ... す。 Also, request.POST is accessed by CsrfViewMiddleware which is enabled by default. This means you will need to use csrf_exempt() on your view to allow you to change the upload handlers. You will then need to use csrf_protect() on the function that a ... ceiving the file upload before the CSRF checks have been done. Example code: from django.views.decorators.csrf import csrf_exempt , csrf_protect @csrf_exempt def upload_file_view ( request ): request . upload_handlers . insert ( 0 , ProgressBarUploadHa ... oad_file_view ( request ): # Process request ... クラスベースのビューを使用している場合は、その dispatch() メソッドで csrf_exempt() を使用し、実際にリクエストを処理するメソッドで csrf_protect() を使用する必要があります。下記はコード例です: from django. ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
ファイルのアップロード — Django 6.1 ドキュメント 11323
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » ファイルのアップロード ¶ Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト ... す。 Also, request.POST is accessed by CsrfViewMiddleware which is enabled by default. This means you will need to use csrf_exempt() on your view to allow you to change the upload handlers. You will then need to use csrf_protect() on the function that a ... ceiving the file upload before the CSRF checks have been done. Example code: from django.views.decorators.csrf import csrf_exempt , csrf_protect @csrf_exempt def upload_file_view ( request ): request . upload_handlers . insert ( 0 , ProgressBarUploadHa ... oad_file_view ( request ): # Process request ... クラスベースのビューを使用している場合は、その dispatch() メソッドで csrf_exempt() を使用し、実際にリクエストを処理するメソッドで csrf_protect() を使用する必要があります。下記はコード例です: from django. ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 6.1 ドキュメント 9092
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クロスサイトリクエストフォージェリ (CSRF) 対策 ¶ CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供していま ... ていることを想定しています。クラスベースのビューを使っている場合は、 Decorating class-based views を参照してください。 csrf_exempt ( view ) [ソース] ¶ このデコレータは、ビューがミドルウェアによる保護の対象外であることを示します。例: from django.http imp ... ort HttpResponse from django.views.decorators.csrf import csrf_exempt @csrf_exempt def my_view ( request ): return HttpResponse ( "Hello world" ) csrf_protect ( view ) ¶ ビューに対して CsrfVie ...
https://man.mtool.work/django/6.1/ref/csrf.html
Django の機能廃止のタイムライン — Django 6.1 ドキュメント 8860
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の機能廃止のタイムライン ¶ このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタ ... all and django.utils.itercompat.any will be removed. The Python builtin versions should be used instead. The csrf_response_exempt and csrf_view_exempt decorators will be removed. Since 1.4 csrf_response_exempt has been a no-op (it returns the same func ... tion), and csrf_view_exempt has been a synonym for django.views.decorators.csrf.csrf_exempt , which should be used to replace it. The django.core.cach ...
https://man.mtool.work/django/6.1/internals/deprecation.html
クリックジャッキング対策 — Django 6.1 ドキュメント 8860
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クリックジャッキング対策 ¶ クリックジャッキングミドルウェアとデコレータは、 clickjacking 攻撃に対する防御を簡単に使える形で提供します。このタイプの攻 ... ルウェアに指示できます: from django.http import HttpResponse from django.views.decorators.clickjacking import xframe_options_exempt @xframe_options_exempt def ok_to_load_in_a_frame ( request ): return HttpResponse ( "This page is safe to load in a frame ...
https://man.mtool.work/django/6.1/ref/clickjacking.html
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 6.1 ドキュメント 8860
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クロスサイトリクエストフォージェリ (CSRF) 対策 ¶ CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供していま ... ていることを想定しています。クラスベースのビューを使っている場合は、 Decorating class-based views を参照してください。 csrf_exempt ( view ) [ソース] ¶ このデコレータは、ビューがミドルウェアによる保護の対象外であることを示します。例: from django.http imp ... ort HttpResponse from django.views.decorators.csrf import csrf_exempt @csrf_exempt def my_view ( request ): return HttpResponse ( "Hello world" ) csrf_protect ( view ) ¶ ビューに対して CsrfVie ...
https://man.mtool.work/django/6.1/ref/csrf.html
Django の機能廃止のタイムライン — Django 6.1 ドキュメント 8860
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django の機能廃止のタイムライン ¶ このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタ ... all and django.utils.itercompat.any will be removed. The Python builtin versions should be used instead. The csrf_response_exempt and csrf_view_exempt decorators will be removed. Since 1.4 csrf_response_exempt has been a no-op (it returns the same func ... tion), and csrf_view_exempt has been a synonym for django.views.decorators.csrf.csrf_exempt , which should be used to replace it. The django.core.cach ...
https://man.mtool.work/django/6.1/internals/deprecation.html
クリックジャッキング対策 — Django 6.1 ドキュメント 8860
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クリックジャッキング対策 ¶ クリックジャッキングミドルウェアとデコレータは、 clickjacking 攻撃に対する防御を簡単に使える形で提供します。このタイプの攻 ... ルウェアに指示できます: from django.http import HttpResponse from django.views.decorators.clickjacking import xframe_options_exempt @xframe_options_exempt def ok_to_load_in_a_frame ( request ): return HttpResponse ( "This page is safe to load in a frame ...
https://man.mtool.work/django/6.1/ref/clickjacking.html
PREV 1 2 3 NEXT