diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index dce3ac71..24d1499c 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -192,7 +192,10 @@ SITE_ID = 1 # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.0/howto/static-files/ -STATIC_URL = "/assets/" +if DEBUG: + STATIC_URL = "/static/" +else: + STATIC_URL = "/assets/" STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] STATIC_ROOT = "assets/"