... セスできます。 カスタマイズ例 ¶ Distance objects may be instantiated using a keyword argument indicating the context of the units. In the example below, two different distance objects are instantiated in units of kilometers ( km ) and miles ( mi ): >> ... クトとなります。 >>> a = d1 * d2 # Returns an Area object. >>> print ( a ) 40.2336 sq_km ユニットの属性略称を決定するには、 unit_attname クラスメソッドを使用します: >>> print ( Distance . unit_attname ( "US Survey Foot" )) survey_ft >>> print ( Distan ... ce . unit_attname ( "centimeter" )) cm サポートされる単位 ¶ 単位 (unit) 属性 フルネームまたはエイリアス km Kilometre, Kilometer mi M ... ... セスできます。 カスタマイズ例 ¶ Distance objects may be instantiated using a keyword argument indicating the context of the units. In the example below, two different distance objects are instantiated in units of kilometers ( km ) and miles ( mi ): >> ... クトとなります。 >>> a = d1 * d2 # Returns an Area object. >>> print ( a ) 40.2336 sq_km ユニットの属性略称を決定するには、 unit_attname クラスメソッドを使用します: >>> print ( Distance . unit_attname ( "US Survey Foot" )) survey_ft >>> print ( Distan ... ce . unit_attname ( "centimeter" )) cm サポートされる単位 ¶ 単位 (unit) 属性 フルネームまたはエイリアス km Kilometre, Kilometer mi M ... ... with Django for testing applications. See テストを書いて実行する for an explanation of how to write new tests. Running the unit tests ¶ Quickstart ¶ First, fork Django on GitHub . Second, create and activate a virtual environment. If you're not famil ... ts. Django includes a basic tox.ini that automates some checks that our build server performs on pull requests. To run the unit tests and other checks (such as import sorting , the documentation spelling checker , and code formatting ), install and r ... 1.19.0 Testing other Python versions and database backends ¶ In addition to the default environments, tox supports running unit tests for other versions of Python and other database backends. Since Django's test suite doesn't bundle a settings file f ... ... with Django for testing applications. See テストを書いて実行する for an explanation of how to write new tests. Running the unit tests ¶ Quickstart ¶ First, fork Django on GitHub . Second, create and activate a virtual environment. If you're not famil ... ts. Django includes a basic tox.ini that automates some checks that our build server performs on pull requests. To run the unit tests and other checks (such as import sorting , the documentation spelling checker , and code formatting ), install and r ... 1.19.0 Testing other Python versions and database backends ¶ In addition to the default environments, tox supports running unit tests for other versions of Python and other database backends. Since Django's test suite doesn't bundle a settings file f ... ... Pre-commit checks for further details. Run the tests: / $ ./tests/runtests.py ...\> tests\runtests.py See Running the unit tests for more information. While tests will all pass in CI, they may not on every person's local environment. For example ... thon 関連するページ Submitting contributions Working with Git and GitHub チケットをトリアージする Djangoにはじめて貢献する Unit tests コードのコミット クイック検索 Last update: 2026年10月08日 « previous | up | next » ... ... cific topics: How to submit a patch to Django for new and/or fixed behavior How to write and run tests How to run Django's unit tests How to work with Git and GitHub Related topics ¶ It's important to understand how we work and the conventions we ado ... ... cific topics: How to submit a patch to Django for new and/or fixed behavior How to write and run tests How to run Django's unit tests How to work with Git and GitHub Related topics ¶ It's important to understand how we work and the conventions we ado ... ... me directories from the final release package, including one directory required by django.contrib.gis and part of Django's unit-test suite. Django 1.0.2 ではパッケージングスクリプトが更新され、リリースパッケージには Django 1.0.1 から省略されたディレク ... ... under Python 3. Thus, we're recommending that Django 1.5 not be used in production under Python 3. Instead, use this opportunity to begin porting applications to Python 3. If you're an author of a pluggable component, we encourage you to start portin ... e ¶ Previously, the test database was truncated before each test run in a TransactionTestCase . In order to be able to run unit tests in any order and to make sure they are always isolated from each other, TransactionTestCase will now reset the datab ... der to make sure all TestCase code starts with a clean database, tests are now executed in the following order: First, all unit tests (including unittest.TestCase , SimpleTestCase , TestCase and TransactionTestCase ) are run with no particular orderi ... ... le versions used rebinding developers development 関連するページ Django 1.9.11 リリースノート Django 1.10.3 リリースノート Unit tests Django 1.6 リリースノート Django 0.95 リリースノート Django 1.7.3 リリースノート クイック検索 Last update: 2026年10月 ... 2026年10月08日