variable pour chemin fichiers statiques et medias

This commit is contained in:
nyanloutre 2019-11-01 21:59:41 +01:00
parent 12b66c3b83
commit d94931eb95
Signed by: nyanloutre
GPG Key ID: 194A92D1103ACB2A
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,8 @@ DATABASES = {
}
}
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')
NGINX_DIR = os.environ['NGINX_DIRECTORY']
STATIC_ROOT = os.path.join(VAR_DIR, 'staticfiles')
MEDIA_ROOT = os.path.join(NGINX_DIR, 'media')
STATIC_ROOT = os.path.join(NGINX_DIR, 'staticfiles')