read allowed hosts from env

This commit is contained in:
2019-03-08 13:48:18 +03:00
parent aae9e7aac7
commit 254deb21e3
2 changed files with 29 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ if os.path.exists(env_file):
SECRET_KEY = '6)mck*tk2eq++!01pr2!7qo7#zf_e(hi_m=-qa4x-ah)lvvt4-'
DEBUG = env.bool('DJANGO_DEBUG', True)
ALLOWED_HOSTS = ['0.0.0.0', '127.0.0.1', 'home.bakatrouble.pw', 'localhost', 'bots.bakatrouble.pw']
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', [])
INSTALLED_APPS = [
'django_extensions',