per page, with , order by , clip by
Results of 1 - 10 of about 19 for protect (0.005 sec.)
Django の CSRF 保護を利用する 14684
Django の CSRF 保護を利用する CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default in the MIDDLEWARE setting. If you override that setting, remember that 'django.middleware.csrf. ... view middleware that assumes that CSRF attacks have been dealt with. (推奨されませんが) もし対策を無効にする場合は、 csrf_protect() を使って特定のビューを保護することができます (下記を参照してください)。 POST フォームを使う全てのテンプレートで、POST が ... 体を保護するために CsrfViewMiddleware を追加する代わりに、保護を必要とする特定のビューにおいて、まったく同じ機能を持つ csrf_protect() デコレータを使えます。アウトプット内に CSRF トークンを挿入するビューと、POST フォームデータを受け入れるビューの両方で使用 ... も設定されずにキャッシュされます。この場合、CSRF トークンを挿入する必要があるビューでは、 django.views.decorators.csrf.csrf_protect() デコレータを最初に使うべきです: from django.views.decorators.cache import cache_page from django.views.decorators.csrf i ...
https://man.mtool.work/django/6.1/howto/csrf.html
ファイルのアップロード 10706
ファイルのアップロード Django がファイルアップロードを扱うとき、ファイルデータは request.FILES に格納されます ( request についての詳細は リクエスト/レスポンス オブジェクト を参照してください)。ここでは、ファイルがどのようにディスクとメモリに ... 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 actually processes the request. Note that this means that the handlers may start receiving 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 , ProgressBarUploadHandler ( request ... )) return _upload_file_view ( request ) @csrf_protect def _upload_file_view ( request ): # Process request ... クラスベースのビューを使用している場合は、その dispatch() メソッド ...
https://man.mtool.work/django/6.1/topics/http/file-uploads.html
クロスサイトリクエストフォージェリ (CSRF) 対策 10245
クロスサイトリクエストフォージェリ (CSRF) 対策 CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供しています。このタイプの攻撃は、訪問者のログイン情報を悪用してあなたのサイトに何らかの操作を行うことを ... .views.decorators.csrf import csrf_exempt @csrf_exempt def my_view ( request ): return HttpResponse ( "Hello world" ) csrf_protect ( view ) ビューに対して CsrfViewMiddleware の保護機能を提供するデコレータです。 使い方は以下の通りです: from django.shortc ... uts import render from django.views.decorators.csrf import csrf_protect @csrf_protect def my_view ( request ): c = {} # ... return render ( request , "a_template.html" , c ) requires_csrf_token ... ( view ) 通常 csrf_token テンプレートタグは CsrfViewMiddleware.process_view または csrf_protect のような等価なものが実行されていないと動作しません。ビューデコレータ requires_csrf_token を使用すると、テンプレートタグを確 ...
https://man.mtool.work/django/6.1/ref/csrf.html
Django 4.2.30 release notes 8708
Django 4.2.30 release notes April 7, 2026 Django 4.2.30 fixes one security issue with severity "moderate" and four security issues with severity "low" in 4.2.29. CVE-2026-3902: ASGI header spoofing via underscore/hyphen conflation ASGIReque ... runserver was patched in CVE 2015-0219 .) But under ASGI, there is not the same uniform expectation, even if many proxies protect against this under default configuration (including nginx via underscores_in_headers off; ). Headers containing underscore ...
https://man.mtool.work/django/6.1/releases/4.2.30.html
Django 5.2.13 release notes 8708
Django 5.2.13 release notes April 7, 2026 Django 5.2.13 fixes one security issue with severity "moderate" and four security issues with severity "low" in 5.2.12. CVE-2026-3902: ASGI header spoofing via underscore/hyphen conflation ASGIReque ... runserver was patched in CVE 2015-0219 .) But under ASGI, there is not the same uniform expectation, even if many proxies protect against this under default configuration (including nginx via underscores_in_headers off; ). Headers containing underscore ...
https://man.mtool.work/django/6.1/releases/5.2.13.html
Django 6.0.4 release notes 8554
Django 6.0.4 release notes April 7, 2026 Django 6.0.4 fixes one security issue with severity "moderate", four security issues with severity "low", and several bugs in 6.0.3. Also, the latest string translations from Transifex are incorporat ... runserver was patched in CVE 2015-0219 .) But under ASGI, there is not the same uniform expectation, even if many proxies protect against this under default configuration (including nginx via underscores_in_headers off; ). Headers containing underscore ...
https://man.mtool.work/django/6.1/releases/6.0.4.html
Django におけるセキュリティ 8554
Django におけるセキュリティ このドキュメントは、Django のセキュリティ機能の概要です。Django を利用したサイトを安全なものにするためのヒントを説明します。 Real-world security Django's web security implementations have been designed with secur ... Django におけるユーザー入力の検証については、 フォームに関するドキュメント を参照してください。 Cross-site scripting (XSS) protection In a cross-site scripting attack, malicious code in the form of a client-side script is injected into another user's we ... okies or web services, if the data are not adequately sanitized before being published in a page. Django templates provide protection against the majority of cross-site scripting attacks by automatically escaping characters that represent a risk (that i ... s that could be interpreted by the browser to malicious effect are instead safely displayed ). However, the extent of this protection and its limitations should be understood. Ambiguity between the developer's intention and how the browser interprets HT ...
https://man.mtool.work/django/6.1/topics/security.html
Django 1.2 リリースノート 8401
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 ... e database connections in a single Django instance. Model validation inspired by Django's form validation. Vastly improved protection against Cross-Site Request Forgery (CSRF). A new user "messages" framework with support for cookie- and session-based m ... ckwards-incompatible. The big changes are: Support for Python 2.3 has been dropped. See the full notes below. The new CSRF protection framework is not backwards-compatible with the old system. Users of the old system will not be affected until the old s ... ystem is removed in Django 1.4. However, upgrading to the new CSRF protection framework requires a few important backwards-incompatible changes, detailed in CSRF Protection , below. Authors of cust ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django の例外 7803
Django の例外 Django は普通の Python の例外の他に、いくつか独自の例外も起こします。 Django Core 例外 Django core 例外クラスは django.core.exceptions で定義されています。 AppRegistryNotReady exception AppRegistryNotReady [ソース] この例外は、 ... th the original (underlying) database exception, allowing access to any additional information provided. exception models. ProtectedError 参照されているオブジェクトの削除を防ぐために発生させられる django.db.models.PROTECT を使用しています。 models.Prote ...
https://man.mtool.work/django/6.1/ref/exceptions.html
How to release Django 7649
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... sha1sum , and sha256sum on Linux, or md5 and shasum on macOS) python A GPG key pair. Securely store the private part, and protect it with a passphrase. The public part needs to be uploaded to your GitHub account. More than one GPG key If the key you wa ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
PREV 1 2 NEXT