Opened 2 years ago

Closed 20 months ago

#20914 closed New feature (fixed)

Improve documentation: order in INSTALLED_APPS matters for translations and templates

Reported by: stefano.crosta@… Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords: INSTALLED_APPS
Cc: stefano.crosta@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The order of applications in INSTALLED_APPS matters for priority/overriding of at least:

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 Templates Documentation and 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.

Change History (4)

comment:1 Changed 2 years ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 20 months ago by aaugustin

Related to #21018.

comment:4 Changed 20 months ago by timo

  • Resolution set to fixed
  • Status changed from new to closed

Looks good to me.

Note: See TracTickets for help on using tickets.
Back to Top