add ALLOWED_HOSTS to local variables
This commit is contained in:
parent
c4a5970ca3
commit
3ddc757e25
2 changed files with 11 additions and 3 deletions
|
|
@ -32,6 +32,7 @@ if app_stage == 'prod':
|
|||
from .production import *
|
||||
DATABASES["default"]["PASSWORD"] = os.environ.get('DJANGO_DB_PASSWORD','CHANGE_ME_IN_ENV_SETTINGS');
|
||||
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY','CHANGE_ME_IN_ENV_SETTINGS');
|
||||
ALLOWED_HOSTS.append(os.environ.get('ALLOWED_HOSTS','localhost'));
|
||||
else:
|
||||
from .development import *
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue