mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 13:08:03 +00:00
Allow local hostname as well for allowed_hosts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user