#20914: Improve documentation: order in INSTALLED_APPS matters for translations
and
templates
----------------------------------+----------------------------
Reporter: stefano.crosta@… | Owner: nobody
Type: New feature | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords: INSTALLED_APPS
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+----------------------------
The order of applications in INSTALLED_APPS matters for
priority/overriding of at least:
* templates:
https://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.loaders.app_directories.Loader
* translations:
https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#how-django-
discovers-translations
Mailing list discussion: https://groups.google.com/forum/#!topic/django-
developers/r37clRaXgf4
My proposal is to add a box in
https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps saying
something like:
The order of INSTALLED_APPS is significant! Translations and Templates
in Django can be overridden; the first app found will have priority.
Please also see
[https://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.loaders.app_directories.Loader
Templates Documentation] and
[https://docs.djangoproject.com/en/1.5/topics/i18n/translation/#how-
django-discovers-translations Translations Documentation]
An alternative method is to use https://pypi.python.org/pypi/django-
apptemplates/ that allows to override (and inherit) the template of a
specific app.
--
Ticket URL: <https://code.djangoproject.com/ticket/20914>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.90813b49e4454423b883dc2500b42a36%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.