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
Hello all,
My Django application is not serving my static files (CSS, JS) and keeps returning a 404 error. I have set the STATIC_ROOT to the location where I collected all my static files with manage.py and set an alias in my VirtualHost.
This is running in production with debug set to False, so it shouldn't be relying on Django to distribute the files. Any help is much appreciated.
Alex Mandel
unread,
Feb 21, 2014, 8:48:33 PM2/21/14
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
On 02/21/2014 04:00 PM, Bryan P wrote:
> Hello all,
>
> My Django application is not serving my static files (CSS, JS) and keeps
> returning a 404 error. I have set the STATIC_ROOT to the location where I
> collected all my static files with manage.py and set an alias in my
> VirtualHost.
>
>
>
>
> and the url it's trying to retrieve them from i
>
> fixtracker.com/static/BugFixTracker/main.css >
>
> This is running in production with debug set to False, so it shouldn't be
> relying on Django to distribute the files. Any help is much appreciated.
>
How are you referencing the static in your template? Looks like a
mismatch in path. BugFixTracker isn't in /static according to your vhost
file. So shouldn't the url be: