feat: start adding canonical urls

This commit is contained in:
2025-06-29 08:26:26 +02:00
parent 3d2ef9e735
commit 63c692d46b
5 changed files with 10 additions and 1 deletions

View File

@@ -141,6 +141,8 @@ STATIC_ROOT = config.get("locations", "static", fallback="/notfellchen/static")
MEDIA_ROOT = config.get("locations", "media", fallback="/notfellchen/static")
MEDIA_URL = config.get("urls", "media", fallback="/media/")
# Host will be used for allowed hosts but also for canonical URLs and CSRF settings!
# Take all three into account when modifying
host = config.get("notfellchen", "host", fallback='*')
# see https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-ALLOWED_HOSTS