... ython 2.5 or newer as their default version. If you're still using Python 2.4, however, you'll need to stick to Django 1.3 until you can upgrade. Per our support policy , Django 1.3 will continue to receive security support until the release of Django ... projects upgrading to Django 1.4 should update their manage.py . (The old-style manage.py will continue to work as before until Django 1.6. In 1.5 it will raise DeprecationWarning ). The new recommended manage.py file should look like this: #!/usr/bi ... 1.4 includes a QuerySet.select_for_update() method, which generates a SELECT ... FOR UPDATE SQL query. This will lock rows until the end of the transaction, meaning other transactions cannot modify or delete rows matched by a FOR UPDATE query. For mor ... ... ew 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 removed in Django 1.4. However, upgrading to the new CSRF protection framework requires a few important ... ython 2.4 or newer as their default version. If you're still using Python 2.3, however, you'll need to stick to Django 1.1 until you can upgrade; per our support policy , Django 1.1 will continue to receive security support until the release of Django ... use template loading mechanisms that are encapsulated in Python classes as opposed to functions, the only method available until Django 1.1. All the template loaders shipped with Django have been ported to the new API but they still implement the func ... ... word reset mechanism now uses the SHA-256 hashing algorithm. Support for tokens that use the old hashing algorithm remains until Django 4.0. AbstractBaseUser.get_session_auth_hash() now uses the SHA-256 hashing algorithm. Support for user sessions tha ... t use the old hashing algorithm remains until Django 4.0. django.contrib.contenttypes The new remove_stale_contenttypes --include-stale-apps option allows removing stal ... nd django.core.signing.dumps() is changed to the SHA-256. Support for signatures made with the old SHA-1 algorithm remains until Django 4.0. Also, the new algorithm parameter of the Signer allows customizing the hashing algorithm. テンプレート The ren ... ... ython 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 will continue to receive security support until t ... cript with: >>> import django >>> django . setup () Otherwise, you will hit an AppRegistryNotReady exception. WSGI scripts Until Django 1.3, the recommended way to create a WSGI application was: import django.core.handlers.wsgi application = django . ... outside of a transaction. Before Django 1.6, Django's automatic transactions mode allowed this to be used to lock records until the next write operation. Django 1.6 introduced database-level autocommit; since then, execution in such a context voids t ... ... g stable/A.B.x branches was adopted starting with the Django 1.5 release cycle. Previously, these branches weren't created until right after the releases and the stabilization work occurred on the main repository branch. Thus, no new feature developme ... nt work for the next release of Django could be committed until the final release happened. For example, shortly after the release of Django 1.3 the branch stable/1.3.x was created. Offi ... ... eps for each release. Check Jenkins is green for the version(s) you're putting out. You probably shouldn't issue a release until it's green, and you should make sure that the latest green run includes the changes that you are releasing. Cleanup the re ... er as defined in the tarball ( django-<version>.tar.gz ). For example: "5.2", "4.1.1", or "4.2rc1". Is active Set to False until the release is fully published (last step). LTS Enable if the release is part of an LTS branch. Dates Set the release date ... to today. This release will not be published until is_active is enabled. Artifacts Upload the tarball ( django-<version>.tar.gz ), wheel ( django-<version>-py3-none-any.whl ... ... ned with an unambiguous salt derivation. For backwards compatibility, cookies signed by older Django versions are accepted until Django 2028. Projects affected by the above ambiguity should set SIGNED_COOKIE_LEGACY_SALT_FALLBACK to False to reject old ... ... ned with an unambiguous salt derivation. For backwards compatibility, cookies signed by older Django versions are accepted until Django 2028. Projects affected by the above ambiguity should set SIGNED_COOKIE_LEGACY_SALT_FALLBACK to False to reject old ... ... ed.) If a third-party package does either of those, projects that use it will not be able to change to the MAILERS setting until the package has been updated. Solving "not available when MAILERS is defined" errors If either of these errors are raised ... package), you will need to remove MAILERS from your settings and replace it with the equivalent deprecated email settings until the package has been updated. If those errors are coming from your own code, see the other sections in this migration guid ... ... s to create, release or rollback savepoints. This is more likely to happen with SQLite, since it didn't support savepoints until this release. If tests using assertNumQueries() fail because of a higher number of queries than expected, check that the e ... uiteRunner to fully restore the old test behavior. DjangoTestSuiteRunner is deprecated but will not be removed from Django until version 1.8. Removal of django.contrib.gis.tests.GeoDjangoTestSuiteRunner GeoDjango custom test runner This is for develop ... now uses a GenericIPAddressField for storing commenters' IP addresses, to support comments submitted from IPv6 addresses. Until now, it stored them in an IPAddressField , which is only meant to support IPv4. When saving a comment made from an IPv6 ad ... 2026年10月08日