... ython 2.5 compatibility. This was issue #21362 in Django's Trac. ... ... Python version for that release series, this release fixes compatibility with Python 2.4. ... ... "Magic Removal" -- it just wasn't an official, stable API. In recognition of this, we've endeavored to maintain backwards-compatibility with the old API endpoint where possible. However, API endpoints that aren't part of the new official API have been deprec ... are now automatically run by migrate . The GDAL interface now supports retrieving properties of raster (image) data file . Compatibility shims for SpatialRefSys and GeometryColumns changed in Django 1.2 have been removed. All GDAL-related exceptions are now r ... aised with GDALException . The former OGRException has been kept for backwards compatibility but should not be used any longer. django.contrib.sessions Session cookie is now deleted after flush() is called. django.c ... ... age will be removed. The assignment_tag helper will be removed. The host argument to assertsRedirects will be removed. The compatibility layer which allows absolute URLs to be considered equal to relative ones when the path is identical will also be removed. ... re.urlresolvers module will be removed. The model CommaSeparatedIntegerField will be removed. A stub field will remain for compatibility with historical migrations. Support for the template Context.has_key() method will be removed. Support for the django.core ... .1+. The original_content_type_id attribute on django.contrib.admin.helpers.InlineAdminForm will be removed. The backwards compatibility shim to allow FormMixin.get_form() to be defined with no default value for its form_class argument will be removed. The fo ... ... ant to our compatibility policy , maintains backwards compatibility with Django 1.0), but does contain a number of fixes and other improvements. Dj ... iteral strings passed to join are no longer automatically escaped, meaning you must now manually escape them; this is an incompatibility if you were relying on this bug, but not if you were relying on escaping behaving as documented. Improved and expanded tra ... ... uant to our compatibility policy , maintains backwards compatibility with Django 1.0.0), but does contain a number of fixes and other improvements. ... ... pe We've switched the admin and other bundled templates to use the HTML5 doctype. While Django will be careful to maintain compatibility with older browsers, this change means that you can use any HTML5 features you need in admin pages without having to lose ... o provide easy protection against clickjacking using the X-Frame-Options header. It's not enabled by default for backwards compatibility reasons, but you'll almost certainly want to enable it to help plug that security hole for browsers that support the heade ... t. Added the makemessages --no-location option. Changed the locmem cache backend to use pickle.HIGHEST_PROTOCOL for better compatibility with the other cache backends. Added support in the ORM for generating SELECT queries containing DISTINCT ON . The distinc ... ... ... he same project to Django 3.1, you should set DEFAULT_HASHING_ALGORITHM to 'sha1' during the transition, in order to allow compatibility with the older versions of Django. Note that this requires Django 3.1.1+. Once the transition to 3.1 is complete you can s ... m the set_language() view is now based on the Accept HTTP header instead of the X-Requested-With HTTP header presence. The compatibility imports of django.core.exceptions.EmptyResultSet in django.db.models.query , django.db.models.sql , and django.db.models.s ... ql.datastructures are removed. The compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed. The compatibility imports of dja ... ... apparent AJAX origin. This is technically backwards-incompatible, but the security risks have been judged to outweigh the compatibility concerns in this case. Additionally, Django will now accept the CSRF token in the custom HTTP header X-CSRFTOKEN, as well ... 2026年10月08日