Skip to content

Commit

Permalink
Fix: add missing file and confs to plug and run
Browse files Browse the repository at this point in the history
  • Loading branch information
smaniotto committed Feb 13, 2018
1 parent 200d3b7 commit d64ce6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/local.example.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DJANGO_SECRET_KEY=fr5r80uji*^IPcd809_OUCT&D&80pi
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,
DATABASE_URL=postgres://postgres:postgres@db:5432/app
3 changes: 2 additions & 1 deletion src/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.bool('DJANGO_DEBUG', False)

ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS')
ALLOWED_HOSTS = env.list('DJANGO_ALLOWED_HOSTS', [])

# Application definition
DJANGO_APPS = [
Expand All @@ -30,6 +30,7 @@
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
]

Expand Down
7 changes: 7 additions & 0 deletions src/app/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os

from django.core.wsgi import get_wsgi_application


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
application = get_wsgi_application()

0 comments on commit d64ce6a

Please sign in to comment.