Allowed_hosts in .env file
This commit is contained in:
parent
7b7796f1e5
commit
752ad61394
|
@ -31,7 +31,7 @@ SECRET_KEY = env('SECRET_KEY')
|
|||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = env('ALLOWED_HOSTS').split()
|
||||
|
||||
|
||||
# Application definition
|
||||
|
|
Loading…
Reference in New Issue