Created
February 25, 2016 10:09
-
-
Save nottrobin/aa58da526f5cf9b8d4a8 to your computer and use it in GitHub Desktop.
Django settings example for Whitenoise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # myapp/settings.py | |
| STATIC_ROOT = 'static' | |
| STATIC_URL = '/static/' | |
| # myapp/wsgi.py | |
| from django.core.wsgi import get_wsgi_application | |
| from whitenoise.django import DjangoWhiteNoise | |
| application = DjangoWhiteNoise(get_wsgi_application()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment