per page, with , order by , clip by
Results of 1 - 10 of about 18 for failure (0.009 sec.)
Unit tests 13881
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... c to a particular database backend and will be skipped if run with a different backend. Some tests are skipped or expected failures on a particular database backend (see DatabaseFeatures.django_test_skips and DatabaseFeatures.django_test_expected_failur ... s . For example, tests for contrib.auth are located in tests/auth_tests . トラブルシューティング Test suite hangs or shows failures on main branch Ensure you have the latest point release of a supported Python version , since there are often bugs in ear ... ntests.py Or add export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES to your shell's startup file (e.g. ~/.profile ). Many test failures with UnicodeEncodeError If the locales package is not installed, some tests will fail with a UnicodeEncodeError . You can ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Django 3.1.8 リリースノート 11839
Django 3.1.8 リリースノート April 6, 2021 Django 3.1.8 fixes a security issue with severity "low" and a bug in 3.1.7. CVE-2021-28658: Potential directory-traversal via uploaded files MultiPartParser allowed directory-traversal via uploaded ... were not affected by this vulnerability. バグ修正 Fixed a bug in Django 3.1 where the output was hidden on a test error or failure when using test --pdb with the --buffer option ( #32560 ). ...
https://man.mtool.work/django/6.1/releases/3.1.8.html
Django 1.1.2 リリースノート 9814
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 ... the test runners ( tests/runtests.py and python manage.py test ) no longer represents the number of failed tests, since a failure of 256 or more tests resulted in a wrong exit status code. The exit status code for the test runner is now 0 for success ( ... no failing tests) and 1 for any number of test failures. If needed, the number of test failures can be found at the end of the test runner's output. Cookie encoding To fix bugs ...
https://man.mtool.work/django/6.1/releases/1.1.2.html
Python プログラマーのための Django テンプレート言語 9128
Python プログラマーのための Django テンプレート言語 この文書は Django テンプレートシステムがどのように動作し、どのように拡張するか、技術的な観点から説明します。構文に関するリファレンスを探しているなら、 Django テンプレート言語 を参照してくだ ... 変数よりも少し複雑です。以下に注意すべき点を示します: この変数が呼び出されたときに例外が発生した場合、例外が silent_variable_failure 属性の値が True でない限り、例外は伝播します。例外に silent_variable_failure 属性があり、その値が True である場合、その変数 ... ceback (most recent call last): ... AssertionError : foo >>> class SilentAssertionError ( Exception ): ... silent_variable_failure = True ... >>> class PersonClass4 : ... def first_name ( self ): ... raise SilentAssertionError ... >>> p = PersonClass4 ( ... xceptions.ObjectDoesNotExist はすべての Django データベース API の DoesNotExist 例外用の基本クラスですが、 silent_variable_failure = True を持っていることに注意してください。そのため、 Django モデルオブジェクトで Django テンプレートを使っている場合、 Do ...
https://man.mtool.work/django/6.1/ref/templates/api.html
Django 1.2 リリースノート 9128
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 ... ving readability and resolving problems referring to objects whose primary key value may not be predictable or known. Fast failure for tests Both the test subcommand of django-admin.py and the runtests.py script used to run Django's own test suite now s ... upport a --failfast option. When specified, this option causes the test runner to exit after encountering a failure instead of continuing with the test run. In addition, the handling of Ctrl-C during a test run has been improved to trigge ... he test runners ( tests/runtests.py and python manage.py test ) no longer represents the number of failed tests, because a failure of 256 or more tests resulted in a wrong exit status code. The exit status code for the test runner is now 0 for success ( ...
https://man.mtool.work/django/6.1/releases/1.2.html
Sprint quickstart guide 8459
Sprint quickstart guide This document explains how to prepare to contribute to Django. It is intended for use during sprints, or by people who are already familiar with contributing to Python open source projects. This guide assumes you're ... orted Python version. It's possible you may encounter errors using an earlier point release. If you have a small number of failures, it may be worth investigating whether they are known issues, or using the django-docker-box project to run the tests. Si ... a weird machine configuration problem. Make a note of the failing tests before you start, so you can tell whether a later failure was caused by your changes. Build the documentation: /  $ cd docs && make html && cd .. ...\> cd docs && make.bat html ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
Django のセキュリティポリシー 8459
Django のセキュリティポリシー Django の開発チームは、セキュリティ関連の問題の責任ある報告と開示に強くコミットしています。そのため、私たちはその理想に従い、公式の Django ディストリビューション、およびサードパーティのディストリビューションにタ ... considered valid , even if that version is listed as supported by Django. User input must be sanitized Reports based on a failure to sanitize user input are not valid security vulnerabilities. It is the developer's responsibility to properly handle use ... ffect local development, for example when using runserver . Exploits which fail to follow security best practices, such as failure to sanitize user input. For other examples, see our security documentation . Exploits in AI generated code that do not adh ...
https://man.mtool.work/django/6.1/internals/security.html
設定 8115
設定 警告 設定を上書きするとき、特にデフォルト値が空でないリストや辞書の場合、例えば STATICFILES_FINDERS などは、注意してください。Djangoの使用したい機能に必要なコンポーネントを保持するようにしてください。 コアの設定 ここでは、Django の cor ... アよりも前に、 SessionMiddleware が MIDDLEWARE に登録されている必要があります。 Middleware の順序 を参照してください。 CSRF_FAILURE_VIEW デフォルト値: 'django.views.csrf.csrf_failure' CSRF保護 によって受信リクエストが拒否された場合に使用されるビュー関数へ ... のドット区切りパス。関数には次のシグネチャが必要です: def csrf_failure ( request , reason = "" ): ... reason は、リクエストが拒否された理由を示す短いメッセージ(開発者やログ用であり、エンドユー ... ザー向けではありません)です。これは HttpResponseForbidden を返すべきです。 django.views.csrf.csrf_failure() は追加の template_name パラメータを受け付け、デフォルトでは '403_csrf.html' になっています。その名前のテンプレートが存在 ...
https://man.mtool.work/django/6.1/ref/settings.html
Django の CSRF 保護を利用する 7772
Django の CSRF 保護を利用する CSRF 対策をあなたのビューで有効にするには、以下の手順に従ってください: The CSRF middleware is activated by default in the MIDDLEWARE setting. If you override that setting, remember that 'django.middleware.csrf. ... されるべきです。 エラーページはとてもユーザーフレンドリーではないので、独自のビューを提供したいと考えるかもしれません。 CSRF_FAILURE_VIEW の設定で実現できます。 CSRF の認証失敗は、 django.security.csrf ロガーに警告として記録されます。 キャッシュによるCSRF ...
https://man.mtool.work/django/6.1/howto/csrf.html
クロスサイトリクエストフォージェリ (CSRF) 対策 7772
クロスサイトリクエストフォージェリ (CSRF) 対策 CSRF ミドルウェアとテンプレートタグは、簡単に扱える Cross Site Request Forgeries 対策を提供しています。このタイプの攻撃は、訪問者のログイン情報を悪用してあなたのサイトに何らかの操作を行うことを ... AGE CSRF_COOKIE_DOMAIN CSRF_COOKIE_HTTPONLY CSRF_COOKIE_NAME CSRF_COOKIE_PATH CSRF_COOKIE_SAMESITE CSRF_COOKIE_SECURE CSRF_FAILURE_VIEW CSRF_HEADER_NAME CSRF_TRUSTED_ORIGINS CSRF_USE_SESSIONS よくある質問 任意の CSRF トークンのペア(クッキーと POST データ ...
https://man.mtool.work/django/6.1/ref/csrf.html
PREV 1 2 NEXT