The project template should list INSTALLED_APPS in precedence order
See original GitHub issueCurrently, the project template’s INSTALLED_APPS lists the default apps from most generic to most specific, but this is the inverse of the order Django expects them in: apps listed earlier override the resources of apps listed later.
A better default value for this setting might be:
INSTALLED_APPS = [
'home',
'search',
'wagtail.wagtailforms',
'wagtail.wagtailredirects',
'wagtail.wagtailembeds',
'wagtail.wagtailsites',
'wagtail.wagtailusers',
'wagtail.wagtailsnippets',
'wagtail.wagtaildocs',
'wagtail.wagtailimages',
'wagtail.wagtailsearch',
'wagtail.wagtailadmin',
'wagtail.wagtailcore',
'modelcluster',
'compressor',
'taggit',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Importance of apps orders in INSTALLED_APPS
The directories listed in LOCALE_PATHS have the highest precedence, with the ones appearing first having higher precedence than the ones ...
Read more >Add a new column to Milestones sample app to track work ...
For example, in the Milestones app (https://aka.ms/TeamsMilestones), users can track the category and priority of work items.
Read more >Settings | Django documentation
Core Settings¶. Here's a list of settings available in Django core and their default values. Settings provided by contrib apps are listed below, ......
Read more >Order of INSTALLED_APPS
list to the fact that APPS coming first in the INSTALLED_APPS will have >> priority - their templates will be loaded effectivily overriding/shadowing...
Read more >Add tools to your project toolchain | Jira Software Cloud
filter by installed apps. Follow the prompts to add, install, or request apps. Actions will vary depending on the app status and your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It will at least cause problems as soon as users try to override any templates the way many other Django apps expect them to: instead of working, the templates will just silently get ignored, which is a frustrating failure mode for newcomers to have to struggle with.
Fixing this should not give any impression that Wagtail is being non-standard: the Django docs (link) are quite specific about the order INSTALLED_APPS should be listed in:
I think the current version of the polls tutorial is just broken, and should be fixed. The tutorials next page, in fact, covers overriding the admin’s base template, which won’t actually work until the example’s
INSTALLED_APPS
is fixed like the above.Merged, thanks!