whitenoise.django.DjangoWhiteNoise - python examples

Here are the examples of the python api whitenoise.django.DjangoWhiteNoise taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : wsgi.py
Copyright MIT License
Author : nickromano
def setup_whitenoise(app):
    try:
        from whitenoise.django import DjangoWhiteNoise
    except ImportError:
        # Not running in heroku
        return

    return DjangoWhiteNoise(app)  # noqa