Define static target directory

This commit is contained in:
Alexandre Iooss 2021-10-11 10:24:36 +02:00
parent e2c826ec1d
commit 26e7f12141

View file

@ -143,6 +143,10 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'photo21/static'),
]
# Collect statics to /static/
# THIS FOLDER SOULD NOT BE IN GIT TREE!!!
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
# Use /media/ for user uploaded media
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = '/media/'