Commit e89eb906 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion
Browse files

add allowed host in debug

parent 88ab2352
__pycache__/
*.egg-info/
.env
.env_dev
.idea/
# Backend static files
......
......@@ -98,6 +98,9 @@ CORS_ORIGIN_WHITELIST = (
DEBUG = env.bool('DEBUG', default=False)
TEMPLATE_DEBUG = DEBUG
if DEBUG:
ALLOWED_HOSTS = ['*']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
......@@ -115,3 +118,5 @@ STATIC_ROOT = public_root('static')
STATIC_URL = env.str('STATIC_URL', default='/static/')
SECRET_KEY = env.str('SECRET_KEY')
Django==2.2.1
django-cors-headers==3.0.2
django-environ==0.4.5
django-extensions==2.1.7
django-environ
djangorestframework==3.9.4
psycopg2==2.8.2
pytz==2019.1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment