I want my STATIC_ROOT path to be at F:/7.Django/BLOG_PROJECT/src_blog/' + '/vol/web/staticfiles
but django set it at F:/vol/web/staticfiles
I set up my STATIC_ROOT like this
STATIC_ROOT = os.path.join(BASE_DIR,'/vol/web/staticfiles')
print('this is base_dir')
print(BASE_DIR)
print("this is static_root")
print(STATIC_ROOT)
When I run python manage.py runserver
it print out this:
this is base_dir
F:\7.Django\BLOG_PROJECT\src_blog
this is static_root
F:/vol/web/staticfiles
this is base_dir
F:\7.Django\BLOG_PROJECT\src_blog
this is static_root
F:/vol/web/staticfiles
When I run python manage.py collectstatic
. Sure! It set my STATIC_ROOT AT F:/vol/web/staticfiles
. I noticed that it print out the separate folder symbol different '/' and #backslashsymbol. I use windows os btw.
And my current Static_root path `F:/vol/web/staticfiles` – Trọng Nhân Oct 06 '21 at 10:08
I was thinking about how to handle my local computer vs my container. – Trọng Nhân Oct 06 '21 at 10:37