... s displaying model fields and model attributes. While the former were correctly escaped, the latter were not. Thus untrusted content could be injected into the admin, presenting an exploitation vector for XSS attacks. In t ... ... e errors belong and automatically process them. This remains the canonical way of adding errors when possible. However the latter was fiddly and error-prone, since the burden of handling edge cases fell on the user. The new add_error() method allows ad ... plication = get_wsgi_application () If you're still using the former style in your WSGI script, you need to upgrade to the latter, or you will hit an AppRegistryNotReady exception. App registry consistency It is no longer possible to have multiple inst ... ated . That is, select_related('foo', 'bar') is equivalent to select_related('foo').select_related('bar') . Previously the latter would have been equivalent to select_related('bar') . GeoDjango dropped support for GEOS < 3.1. The init_connection_state ... ... of the hasher. This method is implemented for PBKDF2PasswordHasher and BCryptPasswordHasher . The 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 warnin ... ... of the hasher. This method is implemented for PBKDF2PasswordHasher and BCryptPasswordHasher . The 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 warnin ... ... d it. Both classes provide a render() method, however, the former takes a django.template.Context as an argument while the latter expects a dict . This change is enforced through a deprecation path for Django templates. All this also applies to select_ ... Django 1.9. Model Field.related Private attribute django.db.models.Field.related is deprecated in favor of Field.rel . The latter is an instance of django.db.models.fields.related.ForeignObjectRel which replaces django.db.models.related.RelatedObject . ... e.cache.CacheMiddleware and django.middleware.cache.UpdateCacheMiddleware despite the lack of a deprecation warning in the latter class. Usage of the hardcoded Hold down "Control", or "Command" on a Mac, to select more than one. string to override or a ... ... f references 'foo.css' ) or if the chain of files referencing other files is too deep to resolve in several passes. In the latter case, increase the number of passes using ManifestStaticFilesStorage.max_post_process_passes . When using ManifestStaticFi ... ました。 The cached template loader is now enabled if OPTIONS['loaders'] isn't specified and OPTIONS['debug'] is False (the latter option defaults to the value of DEBUG ). This could be backwards-incompatible if you have some template tags that aren't t ... ... メソッドを使用することで、これらのモデルクラスにアクセスできます。 Several of Django's bundled applications make use of the latter technique. For example, the permissions system in Django's authentication framework uses a Permission model with a foreign ... ... ced by tests . TransactionTestCase teardown is now faster on MySQL due to flush command improvements. As a side effect the latter doesn't automatically reset sequences on teardown anymore. Enable TransactionTestCase.reset_sequences if your tests requir ... ... ig' ). It was introduced for backwards-compatibility with the former style, with the intent to switch the ecosystem to the latter, but the switch didn't happen. With automatic AppConfig discovery, default_app_config is no longer needed. As a consequenc ... ... lds for every previous step. Django 1.4 ships with a session-based storage backend and a cookie-based storage backend. The latter uses the tools for cryptographic signing also introduced in Django 1.4 to store the wizard's state in the user's cookies. ... 2026年10月08日