fix: default settings
This commit is contained in:
parent
cce608e150
commit
83bf3e1cd1
@ -30,12 +30,16 @@ SECRET_KEY = os.environ.get(
|
|||||||
DEBUG = os.environ.get("DJANGO_DEBUG", "1") == "1"
|
DEBUG = os.environ.get("DJANGO_DEBUG", "1") == "1"
|
||||||
|
|
||||||
ALLOWED_HOSTS = os.environ.get(
|
ALLOWED_HOSTS = os.environ.get(
|
||||||
"DJANGO_ALLOWED_HOSTS", "127.0.0.1,localhost,0.0.0.0"
|
"DJANGO_ALLOWED_HOSTS", "127.0.0.1,localhost,0.0.0.0,osiris.legrems.xyz"
|
||||||
).split(",")
|
).split(",")
|
||||||
|
|
||||||
# Needed when reaching the admin from your phone over the LAN or a tunnel.
|
# Needed when reaching the admin from your phone over the LAN or a tunnel.
|
||||||
CSRF_TRUSTED_ORIGINS = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
o for o in os.environ.get("DJANGO_CSRF_TRUSTED_ORIGINS", "").split(",") if o
|
o
|
||||||
|
for o in os.environ.get("DJANGO_CSRF_TRUSTED_ORIGINS", "osiris.legrems.xyz").split(
|
||||||
|
","
|
||||||
|
)
|
||||||
|
if o
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user