settings: bugfix assert error msg on DOMAIN

This commit is contained in:
pedro 2024-10-18 10:26:38 +02:00
parent 460fb678e9
commit b0754d8e97
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ assert DOMAIN not in [None, ''], "DOMAIN var is MANDATORY"
print("DOMAIN: " + DOMAIN)
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default=DOMAIN, cast=Csv())
assert DOMAIN in ALLOWED_HOSTS, f"DOMAIN ${DOMAIN} is not ALLOWED_HOST ${ALLOWED_HOST}"
assert DOMAIN in ALLOWED_HOSTS, f"DOMAIN ${DOMAIN} is not in ALLOWED_HOSTS ${ALLOWED_HOSTS}"
CSRF_TRUSTED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', default=f'https://{DOMAIN}', cast=Csv())