Skip to content

Commit 940037c

Browse files
authored
Merge pull request #2 from gtalarico/fix-private-office-area
Revised Whitenoise 4 config
2 parents ab8b8ce + 360014c commit 940037c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "pypi"
77
django = "*"
88
djangorestframework = "*"
99
gunicorn = "*"
10-
whitenoise = "*"
10+
whitenoise = "==4.0"
1111
dj-database-url = "*"
1212
"psycopg2" = "*"
1313

Pipfile.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/wsgi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
import os
1111

1212
from django.core.wsgi import get_wsgi_application
13-
from whitenoise.django import DjangoWhiteNoise
1413

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

1918
application = get_wsgi_application()
20-
application = DjangoWhiteNoise(application)

0 commit comments

Comments
 (0)