From 7c4022e764649a90a41021ef65de5e7282a97871 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 16 Nov 2024 21:10:38 +0100 Subject: [PATCH] feat: Adds STATIC_ROOT for static files collection Configures the STATIC_ROOT setting to specify the directory where static files should be collected. Facilitates deployment by allowing Django to gather static files in one location for serving, aligning with Django's static files management guidelines. --- src/synapse_registration/synapse_registration/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/synapse_registration/synapse_registration/settings.py b/src/synapse_registration/synapse_registration/settings.py index 4ae0ee6..bebf647 100644 --- a/src/synapse_registration/synapse_registration/settings.py +++ b/src/synapse_registration/synapse_registration/settings.py @@ -174,6 +174,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/5.1/howto/static-files/ STATIC_URL = "static/" +STATIC_ROOT = BASE_DIR / "static" # Default primary key field type # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field