diff --git a/config/settings.py b/config/settings.py index bf2e789..20f325a 100644 --- a/config/settings.py +++ b/config/settings.py @@ -119,6 +119,13 @@ USE_TZ = True STATIC_URL = 'static/' +if DEBUG: + STATICFILES_DIRS = [ + BASE_DIR / 'static', + ] +else: + STATIC_ROOT = BASE_DIR / 'static' + # Default primary key field type # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field