Move STATIC_ROOT in production
This commit is contained in:
parent
062f547315
commit
81f3d6ab81
1 changed files with 9 additions and 2 deletions
|
@ -5,7 +5,8 @@ The settings that are not listed here are imported from .common
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from .common import *
|
from .common import * # NOQA
|
||||||
|
from .common import BASE_DIR
|
||||||
|
|
||||||
|
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
@ -16,7 +17,13 @@ ALLOWED_HOSTS = [
|
||||||
"dev.cof.ens.fr"
|
"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/"
|
STATIC_URL = "/gestion/static/"
|
||||||
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "media")
|
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "media")
|
||||||
MEDIA_URL = "/gestion/media/"
|
MEDIA_URL = "/gestion/media/"
|
||||||
|
|
Loading…
Reference in a new issue