... xed more than 2,000 bugs, and edited, added, or removed around 350,000 lines of code. We've also added 40,000 lines of new documentation, and greatly improved what was already there. In fact, new documentation is one of our favorite features of Django 1.0, so ... we might as well start there. First, there's a new documentation site: https://docs.djangoproject.com/ The documentation has been greatly improved, cleaned up, and generally made awesome. ... There's now dedicated search, indexes, and more. We can't possibly document everything that's new in 1.0, but the documentation will be your definitive guide. Anywhere you see something like: New in Django 1.0: This feature is new in Django 1.0 You'l ... ... If you are fixing a really trivial issue, for example changing a word in the documentation, the preferred way to provide the patch is using GitHub pull requests without a Trac ticket. See Working with Git and GitH ... Going through the steps of claiming tickets is overkill in some cases. In the case of small changes, such as typos in the documentation or small bugs that will only take a few minutes to fix, you don't need to jump through the hoops of claiming tickets. Subm ... ing again. If the code adds a new feature, or modifies the behavior of an existing feature, the change should also contain documentation. When you think your work is ready to be reviewed, send a GitHub pull request . If you can't send a pull request for some ... ... ns. It has been demonstrated that this mechanism cannot be made reliable enough for general-purpose use, and that (despite documentation to the contrary) its inclusion in Django may lead application developers to assume that the value of REMOTE_ADDR is "safe" ... の新機能 Quite a bit: since Django 1.0, we've made 1,290 code commits, fixed 1,206 bugs, and added roughly 10,000 lines of documentation. The major new features in Django 1.1 are: ORM improvements Two major enhancements have been added to Django's object-rela ... uery. This feature is available as new aggregate() and annotate() methods, and is covered in detail in the ORM aggregation documentation . Query expressions Queries can now refer to another field on the query and can traverse relationships to refer to fields ... ... + Needs fixes) This means the ticket has been reviewed, and has been found to need further work. "Needs tests" and "Needs documentation" are self-explanatory. "Patch needs improvement" will generally be accompanied by a comment on the ticket explaining what ... ed solution. These will be reviewed to ensure they adhere to the documented guidelines . The following three fields (Needs documentation, Needs tests, Patch needs improvement) apply only if a patch has been supplied. Needs documentation (ドキュメンテーションが ... 必要) This flag is used for tickets with patches that need associated documentation. Complete documentation of features is a prerequisite before we can check them into the codebase. Needs tests (テストが必要 ... ... マで表示されます。これはOKです!あなたのローカルマシンで変更がうまくいけば、 ウェブサイトでもうまくいくでしょう。 Automating documentation rebuilds sphinx-autobuild can be used to automatically rebuild the documentation and reload the documentation page in the ... ぶには reStructuredText reference を参照してください。 このページを編集するには、例えば docs/internals/contributing/writing-documentation.txt というファイルを編集し、 make html でHTMLを再構築します。 Documentation quality checks Several checks help maintain Dj ... ango's documentation quality, including spelling , code block formatting , and documentation style . These checks are run automatically in CI a ... ... tten applications -- make use of full URLs, including domain name, which are generated from the HTTP Host header. Django's documentation has for some time contained notes advising users on how to configure web servers to ensure that only valid Host headers ca ... ot matching an entry in this list will raise SuspiciousOperation if request.get_host() is called. For full details see the documentation for the ALLOWED_HOSTS setting. The default value for this setting in Django 1.4.4 is ['*'] (matching any host), for backwa ... syntax to be MySQL 4 compatible (#19702). Added backwards-compatibility with old unsalted MD5 passwords (#18144). Numerous documentation improvements and fixes. ... ... erTestCase base class lets you test the interactions between your site's front and back ends more comprehensively. See the documentation for more details and concrete examples. Updated default project layout and manage.py Django 1.4 ships with an updated defa ... ew/app django-admin.py startproject myproject /path/to/new/project For more information, see the startapp and startproject documentation. Improved WSGI support The startproject management command now adds a wsgi.py module to the initial project layout, contai ... nsaction, meaning other transactions cannot modify or delete rows matched by a FOR UPDATE query. For more details, see the documentation for select_for_update() . Model.objects.bulk_create in the ORM This method lets you create multiple objects more efficient ... ... versions of Python Python dependency management, including virtual environments The concept of running tests and building documentation If any of these are unfamiliar, see Djangoにはじめて貢献する for a longer, step-by-step tutorial. Set up Fork the reposito ... using a Unix-like system, see the platform-specific instructions . Install the dependencies to run the tests and build the documentation: / $ python -m pip install -U pip $ python -m pip install -e . -r tests/requirements/py3.txt -r docs/requirements.txt ... 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 && cd .. Finding a ticket to work on Finding a worka ... ... rocess. 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 new and/or fixed behavior How to wri ... ... etely generic view base class that can be used as the basis for reusable applications that can be easily extended. See the documentation on class-based generic views for more details. There is also a document to help you convert your function-based generic vi ... as well -- most notably, the error emails sent on an HTTP 500 server error are now handled as a logging activity. See the documentation on Django's logging interface for more details. Extended static files handling Django 1.3 ships with a new contrib app -- ... ps or in other static assets directories listed in STATICFILES_DIRS , and will be served at STATIC_URL . See the reference documentation of the app for more details or learn how to manage static files . unittest2 のサポート Python 2.7 では unittest ライブラリ ... 2026年10月08日