Skip to content

Instantly share code, notes, and snippets.

@nottrobin
Created February 25, 2016 10:09
Show Gist options
  • Select an option

  • Save nottrobin/aa58da526f5cf9b8d4a8 to your computer and use it in GitHub Desktop.

Select an option

Save nottrobin/aa58da526f5cf9b8d4a8 to your computer and use it in GitHub Desktop.
Django settings example for Whitenoise
# 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