From b74c1b3c8f670c342de7e1542b4c01b4c2fa260e Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Tue, 11 Jul 2023 23:36:35 +0200 Subject: [PATCH] Add inventory.hackerspace.pl to ALLOWED_HOSTS --- spejstore/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spejstore/settings.py b/spejstore/settings.py index 9a156ec..78ebccd 100644 --- a/spejstore/settings.py +++ b/spejstore/settings.py @@ -33,7 +33,7 @@ DEBUG = not PROD ALLOWED_HOSTS = env( "ALLOWED_HOSTS", - "devinventory,inventory.waw.hackerspace.pl,i,inventory" + "devinventory,inventory.waw.hackerspace.pl,inventory.hackerspace.pl,i,inventory" + (",127.0.0.1" if not PROD else ""), ).split(",") LOGIN_REDIRECT_URL = "/admin/"