mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 21:18:02 +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
|
import os
|
||||||
from ivatar.settings import BASE_DIR
|
from socket import gethostname, gethostbyname
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
|
from ivatar.settings import BASE_DIR
|
||||||
|
|
||||||
ADMIN_USERS = []
|
ADMIN_USERS = []
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
'localhost',
|
'localhost',
|
||||||
|
gethostname(),
|
||||||
|
gethostbyname(gethostname()),
|
||||||
]
|
]
|
||||||
|
|
||||||
from ivatar.settings import INSTALLED_APPS # noqa
|
from ivatar.settings import INSTALLED_APPS # noqa
|
||||||
|
|||||||
Reference in New Issue
Block a user