You do not have permission to delete messages in this group
Copy link
Report message
Sign in to 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 users
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.
Regards, Sarfaraz Ahmed
Kristofer Pettijohn
unread,
Aug 30, 2017, 10:04:13 AM8/30/17
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
Sign in to 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
Point Apache at static_root.
Django apps you install may also include static files, and "collectstatic" gathers all of those together and puts them in one place (under STATIC_ROOT).