Wednesday, August 30, 2017

Doubts about static files

 Hello Team,

I have doubts about static files. I read articles on Django but it does not clearly states that atleast I got confused.

STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] this is my STATICFILES_DIRS settings which points out to static folder under my project. Also, I can add all the folder from individual app which hold static files here so that it search for static files.
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR),'static_root') which points out to one level up folder than my project. This is how my project folder structures look like


When I run collectstatic files moves files from static files from static folder to static root.

Now, my question is when deploy it on apache which folder should I point to in my conf files. static_root or static.

Sarfaraz Ahmed

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
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment