Skip to content

Commit

Permalink
Add whitenoise for static files
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Pablo Santos committed Aug 24, 2015
1 parent 18d6c8d commit 6581385
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn automated_survey.wsgi:application
2 changes: 2 additions & 0 deletions automated_survey/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import os

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

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "automated_survey.settings.production")

application = get_wsgi_application()
application = DjangoWhiteNoise(application)
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage==3.7.1
Django==1.8.3
django-environ==0.3.0
gunicorn==19.3.0
httplib2==0.9.1
pbr==1.3.0
psycopg2==2.6.1
Expand All @@ -14,3 +15,4 @@ stevedore==1.6.0
twilio==4.5.0
virtualenv==13.0.3
wheel==0.24.0
whitenoise==2.0.3

0 comments on commit 6581385

Please sign in to comment.