From a579ef7d7dbfc8069f56361f7e2ed5280244d821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 16 Nov 2023 16:27:14 +0100 Subject: [PATCH] Move static files in prod --- timetracker/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timetracker/settings.py b/timetracker/settings.py index 0af9c61..a8f0515 100644 --- a/timetracker/settings.py +++ b/timetracker/settings.py @@ -127,7 +127,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/4.1/howto/static-files/ STATIC_URL = "static/" -STATIC_ROOT = BASE_DIR / "static" +STATIC_ROOT = BASE_DIR / "static" if DEBUG else "/var/www/django/static" # Default primary key field type # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field