Skip to content

Commit

Permalink
Upgrade and clarify Django quickstart docs (#548)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Adam Johnson <me@adamj.eu>
  • Loading branch information
bartsanchez and adamchainz authored Oct 28, 2024
1 parent d5caf8d commit 54c464a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ list, above all other middleware apart from Django's `SecurityMiddleware
That's it, you're ready to go.

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

.. code-block:: python
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
STORAGES = {
# ...
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},
}
For more details, including on setting up
CloudFront and other CDNs see the :doc:`Using WhiteNoise with Django <django>`
Expand Down

0 comments on commit 54c464a

Please # to comment.