... LE = mysite.settings \ --master --pidfile = /tmp/project-master.pid \ --socket = 127 .0.0.1:49152 \ # can also be a file --processes = 5 \ # number of worker processes --uid = 1000 --gid = 2000 \ # if root, uwsgi can drop privileges --harakiri = 20 \ # re ... spawn processes taking more than 20 seconds --max-requests = 5000 \ # respawn processes after serving 5000 requests --vacuum \ # clear env ... ... gh the contributing code process. Djangoにはじめて貢献する How-to ガイド If you already have some familiarity with the processes and principles, our documentation also contains useful guidance on specific topics: How to submit a patch to Django for ne ... ... ください。設定しないと、GeoDjangoアプリケーションを実行しているときにApacheがクラッシュする可能性があります。その代わりに、 processes の数を増やしてください。 ... ... できます。 debug_mode は、テストを実行する前に DEBUG 設定を何に設定するべきかを指定します。 parallel specifies the number of processes. If parallel is greater than 1 , the test suite will run in parallel processes. If there are fewer test case classes than ... configured processes, Django will reduce the number of processes accordingly. Each process gets its own database. This option requires the thir ... ... n I help with development? . Review patches of accepted tickets This will help you build familiarity with the codebase and processes. Mark the appropriate flags if a patch needs docs or tests. Look through the changes a patch makes, and keep an eye out fo ... ... SQL ロギング を有効にします。もし --verbosity が 2 なら、パスしたテストのクエリも出力されます。 --parallel [N] DJANGO_TEST_PROCESSES 別々の並列プロセスでテストを実行します。現代のプロセッサは複数のコアを備えているため、これによってテストの実行速度を大幅に ... ne test process per core according to multiprocessing.cpu_count() . You can override this by passing the desired number of processes, e.g. --parallel 4 , or by setting the DJANGO_TEST_PROCESSES environment variable. Django はテストケース ( unittest.TestCa ... ... tion middleware has been split into two classes -- CsrfViewMiddleware checks incoming requests, and CsrfResponseMiddleware processes outgoing responses. The combined CsrfMiddleware class (which does both) remains for backwards-compatibility, but using the ... ... l option: / $ ./runtests.py basic --parallel = 1 ...\> runtests.py basic --parallel=1 You can also use the DJANGO_TEST_PROCESSES environment variable for this purpose. Tips for writing tests Isolating model registration To avoid polluting the global a ... ... Error . The password reset mechanism now invalidates tokens when the user email is changed. makemessages command no longer processes invalid locales specified using makemessages --locale option, when they contain hyphens ( '-' ). The django.contrib.auth.f ... ... behavior for creating and managing tasks, while the responsibility for running them continues to belong to external worker processes. Tasks are defined using the task() decorator: from django.core.mail import send_mail from django.tasks import task @task ... 2026年10月08日