... via the #accessibility channel on the Django Discord server . テスト基準 Design the UI with accessibility in mind, and the testing will only be needed as a final check. For more complex interfaces, confer with other contributors to decide on testing tar ... gets. Reach out to the Accessibility team for support and to coordinate testing. ユーザーインターフェースの変更は、必ず次の方法でテストしてください: Keyboard-only navigation. Common issues include: An i ... ssistive technologies Where the UI changes could affect assistive technologies, here are popular free options we recommend testing with. Windows の場合。 NVDA - recommended with Firefox ESR Narrator - recommended with Microsoft Edge Windows Magnifier Wi ... ... られます。適切な投票期間の後、明らかなコンセンサスが得られれば、投票に従います。 How to test pre-release versions of Django Testing pre-releases is a great way to contribute to Django. Early testers help catch bugs before the final release, ensuring a sm ... oother upgrade experience for everyone. Prerequisites Before testing a pre-release, it is important that your project is running smoothly on the latest stable release of Django. That way, any ... un your tests with deprecation warnings enabled to become aware of required follow-up actions: $ python -Wa manage.py test Testing your project You can install the latest pre-release using pip : $ python -m pip install --pre Django Once installed, run y ... ... includes the synchronization of any test databases that are created when you run a test suite. However, in the process of testing the Django 1.3, it was discovered that this feature has never completely worked as advertised. When using database backend ... sactions, or when using a TransactionTestCase, data that has been inserted using custom SQL will not be visible during the testing process. Unfortunately, there was no way to rectify this problem without introducing a backwards incompatibility. Rather t ... ial data in an uncertain state, Django now enforces the policy that data inserted by custom SQL will not be visible during testing. This change only affects the testing process. You can still use custom SQL to load data into your production database as ... ... testing infrastructure that ships with Django for testing applications. See テストを書いて実行する for an explanation of how to wr ... 0 lint-docs zizmor>=1.19.0 ...\> tox -l py3 black blacken-docs flake8> =3.7.0 docs isort> =7.0.0 lint-docs zizmor> =1.19.0 Testing other Python versions and database backends In addition to the default environments, tox supports running unit tests for o ... e needs to define two databases: A default database. This database should use the backend that you want to use for primary testing. A database with the alias other . The other database is used to test that queries can be directed to different databases. ... ... now tell Django not to retrieve them from the database. You'll do this with the new queryset methods defer() and only() . Testing improvements A few notable improvements have been made to the testing framework . Test performance improvements Tests writ ... ten using Django's testing framework now run dramatically faster (as much as 10 times faster in many cases). This was accomplished through the introd ... test Client now can automatically follow redirects with the follow argument to Client.get() and Client.post() . This makes testing views that issue redirects simpler. It's now easier to get at the template context in the response returned the test clien ... ... ws . Built-in support for using Python's logging facilities . Contrib support for easy handling of static files . Django's testing framework now supports (and ships with a copy of) the unittest2 library . Wherever possible, new features are introduced i ... includes the synchronization of any test databases that are created when you run a test suite. However, in the process of testing the Django 1.3, it was discovered that this feature has never completely worked as advertised. When using database backend ... sactions, or when using a TransactionTestCase, data that has been inserted using custom SQL will not be visible during the testing process. Unfortunately, there was no way to rectify this problem without introducing a backwards incompatibility. Rather t ... ... tion of テストに関する高度なトピック . There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. The Django Packages Testing tools grid has even more o ... ... assertions supported by QUnit . テストの実行 The JavaScript tests may be run from a web browser or from the command line. Testing from a web browser To run the tests from a web browser, open up js_tests/tests.html in your browser. To measure code cover ... ver を実行してみてください。( js_tests の中ではなく) Open http://localhost:8000/js_tests/tests.html in your web browser. Testing from the command line To run the tests from the command line, you need to have Node.js installed. After installing Node.js ... ... e performance and reliability of your application. Django comes with built-in backends , but these are for development and testing only. Django が扱うのはタスクの定義、検証、キューへの挿入、結果の処理であり、実行ではありません。そのため、本番環境では、キ ... is backend is not intended for use in production - it is provided as a convenience that can be used during development and testing. To use it, set BACKEND to "django.tasks.backends.dummy.DummyBackend" : TASKS = { "default" : { "BACKEND" : "django.tasks. ... Third-party backends As mentioned at the beginning of this section, Django includes backends suitable for development and testing only. Production systems should rely on backends that supply a worker process and a durable queue implementation. Availabl ... ... that support both platforms. However, we're labeling this support "experimental" for now: although it's received extensive testing via our automated test suite, it's received very little real-world testing. We've done our best to eliminate bugs, but we ... t for GDAL < 1.5 has been dropped. New tutorials Additions to the docs include a revamped Tutorial 3 and a new tutorial on testing . A new section, "Advanced Tutorials", offers How to write reusable apps as well as a step-by-step guide for new contribut ... n tests execution Some changes have been introduced in the execution of tests that might be backward-incompatible for some testing setups: Database flushing in django.test.TransactionTestCase Previously, the test database was truncated before each test ... 2026年10月08日