Saturday, September 28, 2013

Re: Static files configuration

On 2013-09-28, at 3:27 PM, Jason S <> wrote:

> I can now access my CSS file and i've confirmed it's location by changing its name and confirming the dev server can't see it any more.after I change the file name.
> The directory its finding it is under [project]/templates/static/css
> Sorry, no idea why its working but I suspect its permissions based as i'm running udo python runserver
> I think the dev server is only accessing files owned by root? It doesn't sound right though.

Is there another reason you are running as root? I've been doing all development with my normal user account and have seen no issues at all. If you do have permissions problems those should go away if everything is owned by you rather than root.

And you may have enabled django.contrib.staticfiles in your INSTALLED_APPS. I think that helps to find files when you are running the development server. There is a nice chapter in the Django docs on serving static files.


- Tom

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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment