Update static settings for production

This commit is contained in:
Nyymix 2025-03-19 16:40:34 +02:00
parent 8eca12ce11
commit e481301fa4

View file

@ -118,6 +118,15 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
if DEBUG:
STATICFILES_DIRS = [
BASE_DIR / 'static',
]
else:
STATIC_ROOT = BASE_DIR / 'static'
STATICFILES_DIRS = [
BASE_DIR / 'static',
]