Add STATIC_ROOT and STATICFILES_DIRS settings

This commit is contained in:
2025-12-28 13:21:16 +01:00
parent 0c69b69f28
commit 0fa49fce8b

View File

@@ -116,6 +116,10 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.2/howto/static-files/
STATIC_URL = 'static/'
STATIC_ROOT = BASE_DIR / 'staticfiles'
STATICFILES_DIRS = [
BASE_DIR / 'static',
]
# Default primary key field type
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field