Set ALLOWED_HOSTS from .env
This commit is contained in:
parent
3f37fe4826
commit
273a1acf01
2 changed files with 3 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
SECRET_KEY=ldskjflkdsnejnjsdnf
|
SECRET_KEY=ldskjflkdsnejnjsdnf
|
||||||
DEBUG=False
|
DEBUG=False
|
||||||
ENABLE_DEBUG_LOG=True
|
ENABLE_DEBUG_LOG=True
|
||||||
|
ALLOWED_HOSTS=localhost,.ungleich.ch
|
|
@ -132,9 +132,7 @@ DEBUG_DATABASES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG = config('DEBUG', False, cast=bool)
|
DEBUG = config('DEBUG', False, cast=bool)
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default='localhost', cast=Csv)
|
||||||
".ungleich.ch"
|
|
||||||
]
|
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
|
Loading…
Reference in a new issue