Referring to a comment-question asked in the answer of this question, let's say I have two static files from two different apps that both have the same name style.css
:
/foo
/static
/css
/style.css
/views.py
/models.py
/urls.py
/bar
/static
/css
/style.css
/views.py
/models.py
/urls.py
And I manage.py collectstatic
all the files into STATIC_ROOT
, what happens to style.css
? How is precedence established for which style.css
to load? How does each app's templates know which style.css to load?
I guess what I'm really asking is: what is the django best practice procedure for having static files with the same name in the same project?