Hello!

There is one situation where the order of INSTALLED_APPS really matters - 
which is template override.

One typical case is grappelli - see 
https://django-grappelli.readthedocs.org/en/2.4.5/quickstart.html#setup

Though not officially documented (?) I've found references in the mailing 
list to the fact that APPS coming first in the INSTALLED_APPS will have 
priority - their templates will be loaded effectivily overriding/shadowing 
lower priority app ones.

Now, if this is "officially" confirmed in my opinion it would require:


   1. use a list, not a set, as a default for INSTALLED_APPS. In Python sets 
   are unordered<http://docs.python.org/2/tutorial/datastructures.html#sets> as 
   you surely now better than me
   2. be more explicit in the documentation

If it's not, well... maybe another mechanism should be implemented. For 
very specific cases I've been using 
https://pypi.python.org/pypi/django-apptemplates/  which syntax looks very 
clean and clear to me. I'm not sure if there are other drawbacks or if this 
would be worth including natively into django rather then leaving it as an 
(abandoned) external app...

Thanks!

Stefano

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to