From 6d2612a5ec68a1a76c2a65030b8986c844457531 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 5 May 2020 07:34:41 +0200 Subject: [PATCH] Fix static files --- tfjm/settings.py | 4 ++++ tfjm/settings_dev.py | 4 ---- tfjm/settings_prod.py | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tfjm/settings.py b/tfjm/settings.py index f4c9958..1b02629 100644 --- a/tfjm/settings.py +++ b/tfjm/settings.py @@ -161,6 +161,10 @@ LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] STATIC_URL = '/static/' +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, "static"), +] + MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, "media") diff --git a/tfjm/settings_dev.py b/tfjm/settings_dev.py index aff91f7..3648467 100644 --- a/tfjm/settings_dev.py +++ b/tfjm/settings_dev.py @@ -13,7 +13,3 @@ DATABASES = { } EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' - -STATICFILES_DIRS = [ - os.path.join(BASE_DIR, "static"), -] diff --git a/tfjm/settings_prod.py b/tfjm/settings_prod.py index b92fa3c..a9dd4d2 100644 --- a/tfjm/settings_prod.py +++ b/tfjm/settings_prod.py @@ -14,8 +14,6 @@ DATABASES = { # Break it, fix it! DEBUG = False -STATIC_ROOT = "/code/static" - # Mandatory ! ALLOWED_HOSTS = ['inscription.tfjm.org']