Obtain ALLOWED_HOSTS from config
This commit is contained in:
parent
4d2ee8cf77
commit
e8f12e18d2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
DEBUG = config('DEBUG', default=False, cast=bool)
|
DEBUG = config('DEBUG', default=False, cast=bool)
|
||||||
|
|
||||||
ALLOWED_HOSTS = (os.environ.get('ALLOWED_HOSTS', 'localhost')).split(",")
|
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
|
|
Loading…
Reference in a new issue