Get CSRF_TRUSTED_ORIGINS from env.

This commit is contained in:
Víðir Valberg Guðmundsson 2022-08-09 14:58:51 +02:00
parent a8b37005ed
commit 916e3694c6

View file

@ -16,6 +16,7 @@ SECRET_KEY = env.str("SECRET_KEY", default="something-very-secret")
DEBUG = env.bool("DEBUG", default=False)
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"])
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=["*"])
ADMINS = [tuple(x.split(":")) for x in env.list("DJANGO_ADMINS", default=[])]