Skip to content

Commit

Permalink
Merge pull request gtalarico#2 from gtalarico/fix-private-office-area
Browse files Browse the repository at this point in the history
Revised Whitenoise 4 config
  • Loading branch information
gtalarico authored Aug 14, 2018
2 parents ab8b8ce + 360014c commit 940037c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "pypi"
django = "*"
djangorestframework = "*"
gunicorn = "*"
whitenoise = "*"
whitenoise = "==4.0"
dj-database-url = "*"
"psycopg2" = "*"

Expand Down
8 changes: 4 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions backend/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
import os

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise

# This will set production as default, but we must still set it with an
# ENV on heroku to ensure that the migrate command runs agains the correct DB
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings.prod')

application = get_wsgi_application()
application = DjangoWhiteNoise(application)

0 comments on commit 940037c

Please sign in to comment.