On 23-04-12 12:56, gnesher wrote:
> I'm having an odd problem with my test Django environment.
>
> It seems that static filles I've collected from different apps using
> the collectstatic command works fine, while other static files I
> placed in myself result in 404 error. This can happen from the same
> directory (where a png that was collected will load, but a png i just
> drop in will fail).
In development mode, staticfiles will just serve the files directly from
your app's static/ directories without using the directory where
collectstatic places them. That's proper behaviour for development.
The directory that collectstatic fills is just for your production
environment where you've got a proper webserver to serve that directory.
So... it is by design :-)
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
reinout@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment