Move STATIC_ROOT in production

This commit is contained in:
Martin Pépin 2017-08-08 00:24:00 +01:00
parent 062f547315
commit 81f3d6ab81

View file

@ -5,7 +5,8 @@ The settings that are not listed here are imported from .common
import os
from .common import *
from .common import * # NOQA
from .common import BASE_DIR
DEBUG = False
@ -16,7 +17,13 @@ ALLOWED_HOSTS = [
"dev.cof.ens.fr"
]
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), "static")
STATIC_ROOT = os.path.join(
os.path.dirname(os.path.dirname(BASE_DIR)),
"public",
"static",
)
STATIC_URL = "/gestion/static/"
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "media")
MEDIA_URL = "/gestion/media/"