Search
Clear search
Close search
Main menu
Google apps
Groups
Sign in
Groups
Django users
Conversations
About
Send feedback
Help
name conflicts in static files
50 views
Skip to first unread message
dmitry b
unread,
Oct 18, 2011, 1:31:42 AM
10/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi,
With the new way of handling static files in Django 1.3 what would
happen if two applications have identically named static files? E.g.:
<project>
|___ app1
| |____ static
| |_____ styles.css
|___ app2
|____ static
|_____ styles.css
Thanks
Dmitry
SmileyChris
unread,
Oct 18, 2011, 4:28:21 AM
10/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
The first app in INSTALLED_APPS wins, just like how name conflicts with templates work.
You can use the following command to check what static file gets picked:
https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#findstatic
creecode
unread,
Oct 18, 2011, 5:35:02 AM
10/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Just a general tip for folks. Always namespace your template and static files to avoid problems.
Toodle-loooooooooooooo..........
creecode
Reply all
Reply to author
Forward
0 new messages