... d to models. A singleton known as the "app cache" dealt with both installed applications and models. The models module was used as an identifier for applications in many APIs. As the concept of Django applications matured, this code showed some short ... refetch_related operations. ¶ The new Prefetch object allows customizing prefetch operations. You can specify the QuerySet used to traverse a given relation or customize the storage location of prefetch results. This enables things like filtering pre ... " shortcuts next to date and time input widgets in the admin are now operating in the current time zone . Previously, they used the browser time zone, which could result in saving the wrong value when it didn't match the current time zone on the serv ... ... rt will be added in Django 1.7. Django 1.6 の新機能 ¶ Simplified default project and app templates ¶ The default templates used by startproject and startapp have been simplified and modernized. The admin is now enabled by default in new projects; the ... list will be localized (by setting localize on the form field). The labels , help_texts and error_messages options may be used to customize the default fields, see デフォルトのフィールドをオーバライドする for details. The choices argument to model f ... hey will be resolved. The new dumpdata --pks option specifies the primary keys of objects to dump. This option can only be used with one model. Added QuerySet methods first() and last() which are convenience methods returning the first or last object ... ... d to models. A singleton known as the "app cache" dealt with both installed applications and models. The models module was used as an identifier for applications in many APIs. As the concept of Django applications matured, this code showed some short ... refetch_related operations. ¶ The new Prefetch object allows customizing prefetch operations. You can specify the QuerySet used to traverse a given relation or customize the storage location of prefetch results. This enables things like filtering pre ... " shortcuts next to date and time input widgets in the admin are now operating in the current time zone . Previously, they used the browser time zone, which could result in saving the wrong value when it didn't match the current time zone on the serv ... ... rt will be added in Django 1.7. Django 1.6 の新機能 ¶ Simplified default project and app templates ¶ The default templates used by startproject and startapp have been simplified and modernized. The admin is now enabled by default in new projects; the ... list will be localized (by setting localize on the form field). The labels , help_texts and error_messages options may be used to customize the default fields, see デフォルトのフィールドをオーバライドする for details. The choices argument to model f ... hey will be resolved. The new dumpdata --pks option specifies the primary keys of objects to dump. This option can only be used with one model. Added QuerySet methods first() and last() which are convenience methods returning the first or last object ... ... ango 1.4, switching to the timezone aware mode may take some care: the new mode disallows some rather sloppy behavior that used to be accepted. We encourage anyone who's upgrading to check out the timezone migration guide and the timezone FAQ for use ... precating Python 2.x and moving to Python 3.x. Django 1.4 の新機能 ¶ Support for time zones ¶ In previous versions, Django used "naive" date/times (that is, date/times without an associated time zone), leaving it up to each developer to interpret wha ... startproject management command. These fix some issues with the previous manage.py handling of Python import paths that caused double imports, trouble moving from development to deployment, and other difficult-to-debug path issues. The previous mana ... ... ango 1.4, switching to the timezone aware mode may take some care: the new mode disallows some rather sloppy behavior that used to be accepted. We encourage anyone who's upgrading to check out the timezone migration guide and the timezone FAQ for use ... precating Python 2.x and moving to Python 3.x. Django 1.4 の新機能 ¶ Support for time zones ¶ In previous versions, Django used "naive" date/times (that is, date/times without an associated time zone), leaving it up to each developer to interpret wha ... startproject management command. These fix some issues with the previous manage.py handling of Python import paths that caused double imports, trouble moving from development to deployment, and other difficult-to-debug path issues. The previous mana ... ... there is no implementation of this in core, a custom authentication backend can provide this implementation and it will be used by django.contrib.auth.models.User . See the authentication docs for more information. Permissions for anonymous users ¶ I ... h work like the Python operators, in addition to and , or and not , which were already supported. Also, filters may now be used in the if expression. For example: < div {% if user.email | lower == message.recipient | lower %} class = "highlight" {% e ... t be predictable or known. Fast failure for tests ¶ Both the test subcommand of django-admin.py and the runtests.py script used to run Django's own test suite now support a --failfast option. When specified, this option causes the test runner to exit ... ... there is no implementation of this in core, a custom authentication backend can provide this implementation and it will be used by django.contrib.auth.models.User . See the authentication docs for more information. Permissions for anonymous users ¶ I ... h work like the Python operators, in addition to and , or and not , which were already supported. Also, filters may now be used in the if expression. For example: < div {% if user.email | lower == message.recipient | lower %} class = "highlight" {% e ... t be predictable or known. Fast failure for tests ¶ Both the test subcommand of django-admin.py and the runtests.py script used to run Django's own test suite now support a --failfast option. When specified, this option causes the test runner to exit ... ... ns are now raised 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.contrib.sitemaps ¶ The ... leaned and validated, the UploadedFile object will have an additional image attribute containing the Pillow Image instance used to check if the file was a valid image. It will also update UploadedFile.content_type with the image's content type as det ... ued by the middleware. A debug message will be logged to the django.request logger when a middleware raises a MiddlewareNotUsed exception in DEBUG mode. マイグレーション ¶ The RunSQL operation can now handle parameters passed to the SQL statements. I ... ... ns are now raised 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.contrib.sitemaps ¶ The ... leaned and validated, the UploadedFile object will have an additional image attribute containing the Pillow Image instance used to check if the file was a valid image. It will also update UploadedFile.content_type with the image's content type as det ... ued by the middleware. A debug message will be logged to the django.request logger when a middleware raises a MiddlewareNotUsed exception in DEBUG mode. マイグレーション ¶ The RunSQL operation can now handle parameters passed to the SQL statements. I ... 2026年10月08日