summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Marheine <peter@taricorp.net>2020-10-01 20:10:02 +1000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-10-01 14:02:31 +0200
commit1c7799dbf7919cd8a4bafb4303e21f691e9d582d (patch)
treef270b47c5be1e29481db2d32d9c3e5f2c28c5fd6
parent6b17d13f26c17f9d4c9debe4d2731bff426b46b9 (diff)
[3.1.x] Fixed #32041 -- Doc'd how to modify served files' content types on Windows.
Backport of f87b0ecd37e64e7a019d472de37d0789a8790f1f from master
-rw-r--r--docs/ref/contrib/staticfiles.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 48bdfc984e..84be7d1c27 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -436,9 +436,10 @@ This view function serves static files in development.
:py:mod:`mimetypes` module from the Python standard library, which itself
relies on the underlying platform's map files. If you find that this view
doesn't return proper content types for certain files, it is most likely
- that the platform's map files need to be updated. This can be achieved, for
- example, by installing or updating the ``mailcap`` package on a Red Hat
- distribution, or ``mime-support`` on a Debian distribution.
+ that the platform's map files are incorrect or need to be updated. This can
+ be achieved, for example, by installing or updating the ``mailcap`` package
+ on a Red Hat distribution, ``mime-support`` on a Debian distribution, or by
+ editing the keys under ``HKEY_CLASSES_ROOT`` in the Windows registry.
This view is automatically enabled by :djadmin:`runserver` (with a
:setting:`DEBUG` setting set to ``True``). To use the view with a different