From b10202f2ecf4a3920c308fbb402b9737d0b16d60 Mon Sep 17 00:00:00 2001 From: six2dez Date: Tue, 3 Oct 2023 13:29:55 +0200 Subject: [PATCH] Fix hostname on web server --- web/web/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web/settings.py b/web/web/settings.py index 20e48b52..d11a8dab 100644 --- a/web/web/settings.py +++ b/web/web/settings.py @@ -7,7 +7,7 @@ DEBUG = 1 -ipAddress=os.popen('hostname -I | cut -d " " -f1').read().strip() +ipAddress=os.popen('hostname -i | cut -d " " -f1').read().strip() ALLOWED_HOSTS = [ipAddress, 'localhost', '127.0.0.1', '*'] # SESSION_COOKIE_SECURE = True