... for Trac ticket #xxxxx. By creating a fully-ready pull request, 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 re ... your operating system's package manager. Django's Git repository is hosted on GitHub , and it is recommended that you also work using GitHub. After installing Git, the first thing you should do is set up your name and email: $ git config --global use ... upstream You can add other remotes similarly, for example: git remote add akaariai https://github.com/akaariai/django.git Working on a ticket When working on a ticket, create a new branch for the work, and base that work on upstream/main : git check ... ... familiar with: Git (see Working with Git and GitHub ) Managing multiple versions of Python Python dependency management, including virtual environments ... ssues, or using the django-docker-box project to run the tests. Since this is a sprint, it may be more valuable for you to work on the issue at hand rather than investigating a weird machine configuration problem. Make a note of the failing tests bef ... Build the documentation: / $ cd docs && make html && cd .. ...\> cd docs && make.bat html && cd .. Finding a ticket to work on Finding a workable ticket is a challenging task. It's important to read this section before attempting to do so. Assess ... ... he 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 site also contains vast amounts of documentation . The ... ase of Django. This is where most development activity is focused. stable/A.B.x are the branches where release preparation work happens. They are also used for bugfix and security releases which occur as necessary after the initial release of a featu ... kaged Django releases were produced, since version 1.0. A number of tags also exist under the archive/ prefix for archived work . The source code for the Djangoproject.com website can be found at github.com/django/djangoproject.com . The main branch ... ... a link, they could suffer from an XSS attack. CVE-2016-2513: User enumeration through timing difference on password hasher work factor upgrade In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHasher an ... timing difference. The new BasePasswordHasher.harden_runtime() method allows hashers to bridge the runtime gap between the work factor (e.g. iterations) supplied in existing encoded passwords and the default work factor of the hasher. This method is ... number of rounds for the latter hasher hasn't changed since Django 1.4, but some projects may subclass it and increase the work factor as needed. A warning will be emitted for any third-party password hashers that don't implement a harden_runtime() m ... ... a link, they could suffer from an XSS attack. CVE-2016-2513: User enumeration through timing difference on password hasher work factor upgrade In each major version of Django since 1.6, the default number of iterations for the PBKDF2PasswordHasher an ... timing difference. The new BasePasswordHasher.harden_runtime() method allows hashers to bridge the runtime gap between the work factor (e.g. iterations) supplied in existing encoded passwords and the default work factor of the hasher. This method is ... number of rounds for the latter hasher hasn't changed since Django 1.4, but some projects may subclass it and increase the work factor as needed. A warning will be emitted for any third-party password hashers that don't implement a harden_runtime() m ... ... 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 GitHub for more details on how to use pull requests. "Claiming" tickets In an open-source project with hun ... dreds of contributors around the world, it's important to manage communication efficiently so that work doesn't get duplicated and contributors can be as effective as possible. Hence, our policy is for contributors to "claim" ... tickets in order to let other developers know that a particular bug or feature is being worked on. If you have identified a contribution you want to make and you're capable of fixing it (as measured by your coding a ... ... orm; this will cause the database server to raise an error message about modifying nonexistent constraints. If you need to work around this, there are two methods available: Redirect the output of manage.py to a file, and edit the generated SQL to us ... now escapes backslashes given as query parameters. If you have any database API code that matches backslashes, and it was working before (despite the lack of escaping), you'll have to change your code to "unescape" the slashes one level. For example ... , this used to work: # Find text containing a single backslash MyModel . objects . filter ( text__contains = " \\\\ " ) The above is now incor ... ... Django's form validation. Vastly improved protection against Cross-Site Request Forgery (CSRF). A new user "messages" framework with support for cookie- and session-based message for both anonymous and authenticated users. Hooks for object-level perm ... ible. The big changes are: Support for Python 2.3 has been dropped. See the full notes below. The new CSRF protection framework is not backwards-compatible with the old system. Users of the old system will not be affected until the old system is remo ... ved in Django 1.4. However, upgrading to the new CSRF protection framework requires a few important backwards-incompatible changes, detailed in CSRF Protection , below. Authors of custom Field subc ... ... 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 adopt. Coding style Jav ... ... ject and startapp have been simplified and modernized. The admin is now enabled by default in new projects; the sites framework no longer is. clickjacking prevention is now on and the database defaults to SQLite. If the default templates don't suit y ... e backwards-incompatibility notes . Time zone aware aggregation The support for time zones introduced in Django 1.4 didn't work well with QuerySet.dates() : aggregation was always performed in UTC. This limitation was lifted in Django 1.6. Use QueryS ... for its geo-specialized fields. They are OpenLayers-based by default, but they can be customized to use any other JS framework. check management command added for verifying compatibility A check management command was added, enabling you to verify i ... 2026年10月08日