Allow local hostname as well for allowed_hosts

This commit is contained in:
Oliver Falk
2018-06-12 09:18:57 +02:00
parent 0918b06882
commit 51b7eaa942

View File

@@ -1,10 +1,17 @@
'''
Configuration overrides for settings.py
'''
import os
from ivatar.settings import BASE_DIR
from socket import gethostname, gethostbyname
from django.urls import reverse_lazy
from ivatar.settings import BASE_DIR
ADMIN_USERS = []
ALLOWED_HOSTS = [
'localhost',
gethostname(),
gethostbyname(gethostname()),
]
from ivatar.settings import INSTALLED_APPS # noqa