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.
This commit is contained in:
Kumi 2024-11-16 21:10:38 +01:00
parent 15ccc877ae
commit 7c4022e764
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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