Loading django/core/management/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ def get_commands(): # a settings module. django.setup() app_configs = apps.get_app_configs() app_names = [app_config.name for app_config in app_configs] app_names = [app_config.name for app_config in reversed(app_configs)] # Find and load the management module for each installed app. for app_name in app_names: Loading docs/ref/settings.txt +4 −0 Original line number Diff line number Diff line Loading @@ -1319,6 +1319,10 @@ Django installation. Each string should be a dotted Python path to: These rules apply regardless of whether :setting:`INSTALLED_APPS` references application configuration classes on application packages. When several applications provide different versions of the same resource (template, static file, management command, translation), the application listed first in :setting:`INSTALLED_APPS` has precedence. .. setting:: INTERNAL_IPS INTERNAL_IPS Loading docs/releases/1.7.txt +12 −0 Original line number Diff line number Diff line Loading @@ -697,6 +697,18 @@ following changes that take effect immediately: * The ``only_installed`` argument of ``get_model`` and ``get_models`` no longer exists, nor does the ``seed_cache`` argument of ``get_model``. Management commands and order of :setting:`INSTALLED_APPS` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When several applications provide management commands with the same name, Django loads the command from the application that comes first in :setting:`INSTALLED_APPS`. Previous versions loaded the command from the applicatino that came last. This brings discovery of management commands in line with other parts of Django that rely on the order of :setting:`INSTALLED_APPS`, such as static files, templates, and translations. Behavior of ``LocMemCache`` regarding pickle errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loading tests/admin_scripts/complex_app/management/__init__.py 0 → 100644 +0 −0 Empty file added. tests/admin_scripts/complex_app/management/commands/__init__.py 0 → 100644 +0 −0 Empty file added. Loading
django/core/management/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ def get_commands(): # a settings module. django.setup() app_configs = apps.get_app_configs() app_names = [app_config.name for app_config in app_configs] app_names = [app_config.name for app_config in reversed(app_configs)] # Find and load the management module for each installed app. for app_name in app_names: Loading
docs/ref/settings.txt +4 −0 Original line number Diff line number Diff line Loading @@ -1319,6 +1319,10 @@ Django installation. Each string should be a dotted Python path to: These rules apply regardless of whether :setting:`INSTALLED_APPS` references application configuration classes on application packages. When several applications provide different versions of the same resource (template, static file, management command, translation), the application listed first in :setting:`INSTALLED_APPS` has precedence. .. setting:: INTERNAL_IPS INTERNAL_IPS Loading
docs/releases/1.7.txt +12 −0 Original line number Diff line number Diff line Loading @@ -697,6 +697,18 @@ following changes that take effect immediately: * The ``only_installed`` argument of ``get_model`` and ``get_models`` no longer exists, nor does the ``seed_cache`` argument of ``get_model``. Management commands and order of :setting:`INSTALLED_APPS` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When several applications provide management commands with the same name, Django loads the command from the application that comes first in :setting:`INSTALLED_APPS`. Previous versions loaded the command from the applicatino that came last. This brings discovery of management commands in line with other parts of Django that rely on the order of :setting:`INSTALLED_APPS`, such as static files, templates, and translations. Behavior of ``LocMemCache`` regarding pickle errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Loading