Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django install whitenoise

$ pip install whitenoise

#In the settings.py:
MIDDLEWARE = [
    # ...
    "django.middleware.security.SecurityMiddleware",
    "whitenoise.middleware.WhiteNoiseMiddleware",
    # ...
]
Source by whitenoise.evans.io #
 
PREVIOUS NEXT
Tagged: #django #install #whitenoise
ADD COMMENT
Topic
Name
7+6 =