It is duplicate of question in 
stackoverflow<http://stackoverflow.com/questions/21020472/order-of-finding-static-files-and-templates-in-django-apps>
.

For example I have 2 apps in my django project with templates and static 
files with identical subpath:

app1 / 
    static /
        style.css
    templates /
        index.html
app2 / 
    static /
        style.css
    templates /
        index.html

than, in settings.py I added this two apps:

INSTALLED_APPS = (
    'app1',
    'app2',)

now I use in some way 'style.css' and 'index.html' in templates, e.g.

{% include 'index.html' %}

so, question is:

*Does Django guarantee that when I reference to 'style.css' or 'index.html' 
will be used files from app2 subdirectories?*

Is it any other way to point Django preferable variants of files in such 
situation?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/64abdb46-741a-4234-9cef-dbee4d12efa3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to