... ment. Tutorials ¶ The Django tutorial contains a whole section that walks you step-by-step through the contributing code process. Dja ... ngoにはじめて貢献する 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 new and/or fixed behavior How to write and run tests How to run Django's unit tes ... ... ment. Tutorials ¶ The Django tutorial contains a whole section that walks you step-by-step through the contributing code process. Dja ... ngoにはじめて貢献する 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 new and/or fixed behavior How to write and run tests How to run Django's unit tes ... ... Django in Granian ¶ When Granian is installed, a granian command is available which runs WSGI applications. Granian needs to be called with the location of a module containing a WSGI application object named application , using the --interface wsg ... ypical Django project, invoking Granian would look like: granian myproject.wsgi:application --interface wsgi This will start one process listening on 127.0.0.1:8000 . It requires that your project be on the Python path; to ensure that, run this com ... mand from the same directory as your manage.py file. For more advanced usage, please read the Granian documentation . 目次 How to use Django with Granian Installing Granian Running Django in Granian 前のトピックへ WSGI とともにデプロイするには 次のト ... ... Django in Granian ¶ When Granian is installed, a granian command is available which runs ASGI applications. Granian needs to be called with the location of a module containing an ASGI application object, followed by what the application is called ... ypical Django project, invoking Granian would look like: granian myproject.asgi:application --interface asgi This will start one process listening on 127.0.0.1:8000 . It requires that your project be on the Python path; to ensure that, run this com ... mand from the same directory as your manage.py file. For more advanced usage, please read the Granian documentation . 目次 How to use Django with Granian Installing Granian Running Django in Granian 前のトピックへ Django を Daphne とともに使う 次のト ... ... す: Add the CSP middleware to your MIDDLEWARE setting: MIDDLEWARE = [ # ... "django.middleware.csp.ContentSecurityPolicyMiddleware" , # ... ] Configure ... h). The CSP Settings docs provide more details about the differences between these two: from django.utils.csp import CSP # To enforce a CSP policy: SECURE_CSP = { "default-src" : [ CSP . SELF ], # Add more directives to be enforced. } # Or for repo ... ache. See the reference documentation on Nonce usage for implementation details and important caching considerations. 目次 How to use Django's Content Security Policy Basic config Nonce config 前のトピックへ REMOTE_USER で認証する 次のトピックへ Dja ... ... n more than just turning HTTP requests into HTTP responses. For some functionality, it may be beneficial to run code outside the request-response cycle. That's where ... background Tasks come in. Background Tasks can offload work to be run outside the request-response cycle, to be run elsewhere, potentially at a later date. This keeps requests fast, red ... Store. These workers run outside the request-response lifecycle. Configuring a Task backend ¶ The Task backend determines how and where Tasks are stored for execution and how they are executed. Different Task backends have different characteristics ... ... ergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a GitHub pull request containing the changes for Trac ticket #xxxxx. By creating a fully-ready pull req ... uest, you will make the reviewer's job easier, meaning that your work is more likely to be merged into Django. You could also upload a traditional patch to Trac, but it's less practical for reviews. Git のインス ... tance: "all tests pass under SQLite and MySQL". Pull requests at GitHub have only two states: open and closed. The merger who will deal with your pull request has only two options: merge it or close it. For this reason, it isn't useful to make a pul ... ... ントはコードレポジトリの構成とそこでの作業方法と調査方法について説明しています。 大局的な概要 ¶ The Django source code repository uses Git to track changes to the code over time, so you'll need a copy of the Git client (a program called git ) on your ... computer, and you'll want to familiarize yourself with the basics of how Git works. Git's website offers downloads for various operating systems. The s ... re and move over to the documentation for contributing to Django , which covers things like the preferred coding style and how to generate and submit a patch. Stable branches ¶ Django uses branches to prepare for releases of Django. Each major relea ... ... 3.4. We highly recommend and only officially support the latest release of each series. The Django 1.6 series is the last to support Python 2.6. Django 1.7 is the first release to support Python 3.4. This change should affect only a small number o ... f Django users, as most operating-system vendors today are shipping Python 2.7 or newer as their default version. If you're still using Python 2.6, ... however, you'll need to stick to Django 1.6 until you can upgrade your Python version. Per our support policy , Django 1.6 wil ... ... 3.4. We highly recommend and only officially support the latest release of each series. The Django 1.6 series is the last to support Python 2.6. Django 1.7 is the first release to support Python 3.4. This change should affect only a small number o ... f Django users, as most operating-system vendors today are shipping Python 2.7 or newer as their default version. If you're still using Python 2.6, ... however, you'll need to stick to Django 1.6 until you can upgrade your Python version. Per our support policy , Django 1.6 wil ... 2026年10月08日