Skip to content

Commit 54c464a

Browse files
Upgrade and clarify Django quickstart docs (#548)
--------- Co-authored-by: Adam Johnson <me@adamj.eu>
1 parent d5caf8d commit 54c464a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎docs/index.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ list, above all other middleware apart from Django's `SecurityMiddleware
6161
That's it, you're ready to go.
6262

6363
Want forever-cacheable files and compression support? Just add this to your
64-
``settings.py``:
64+
settings file:
6565

6666
.. code-block:: python
6767
68-
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
68+
STORAGES = {
69+
# ...
70+
"staticfiles": {
71+
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
72+
},
73+
}
6974
7075
For more details, including on setting up
7176
CloudFront and other CDNs see the :doc:`Using WhiteNoise with Django <django>`

0 commit comments

Comments
 (0)