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.
>
>
> Here <https://dpaste.de/dP62>is my Settings.py
>
> Here <https://dpaste.de/6bd5>is my VirtualHost file
>
> Here is the 404 file
>
> <https://lh4.googleusercontent.com/-c2TRmfWKF3U/UwfoPptOAFI/AAAAAAAAAFU/x6RLNsPApeM/s1600/404.png>
>
>
> 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:
fixtracker.com/static/main.css
Thanks,
Alex
--
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+unsubscribe@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/530801F1.5090300%40wildintellect.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment