From a5e2a0e569809b7ea0c379e12d637ef0e5c9c8b9 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 31 Dec 2013 00:08:55 +0100 Subject: [PATCH] Added release notes for today's app-loading improvements. --- docs/releases/1.7.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 87fa419188..728c7e64b0 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -73,12 +73,19 @@ attach configuration data to applications. Improvements thus far include: +* Applications can run code at startup, before Django does anything else, with + the :meth:`~django.apps.AppConfig.setup` method of their configuration. + * It is possible to omit ``models.py`` entirely if an application doesn't have any models. * The name of applications can be customized in the admin with the :attr:`~django.apps.AppConfig.verbose_name` of application configurations. +* Django imports all application configurations and models as soon as it + starts, through a deterministic and straightforward process. This should + make it easier to diagnose import issues such as import loops. + New method on Field subclasses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~