WhiteNoise

WhiteNoise

August 21, 2023 | permanent

Django App, Python Apps #

, - tags :: github

Radically simplified static file serving for Python web apps

For Django #

Docs

MIDDLEWARE = [
    # ...
    "django.middleware.security.SecurityMiddleware",
    "whitenoise.middleware.WhiteNoiseMiddleware",
    # ...
]

# Want forever-cacheable files and compression support? Just add this to your settings.py:
# settings.py
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"


Go to random page

Previous Next