feat: Make static dir configurable

This commit is contained in:
Kumi 2025-10-25 20:15:39 +02:00
commit 36efc3290e
No known key found for this signature in database
GPG key ID: ECBCC9082395383F
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ __pycache__/
/output
db.sqlite3
config.yaml
/static

View file

@ -123,6 +123,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/5.2/howto/static-files/
STATIC_URL = "static/"
STATIC_ROOT = os.environ.get("MALLARDDNS_STATIC_ROOT", "static")
# Default primary key field type
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field