From aec1c30a879855ddb200287139befcf44bee3ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Sun, 10 Aug 2025 00:19:17 +0300 Subject: [PATCH] Add static config --- config/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) 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