1
0
mirror of https://github.com/django/django.git synced 2025-07-17 16:19:12 +00:00

[3.1.x] Fixed #32041 -- Doc'd how to modify served files' content types on Windows.

Backport of f87b0ecd37e64e7a019d472de37d0789a8790f1f from master
This commit is contained in:
Peter Marheine 2020-10-01 20:10:02 +10:00 committed by Mariusz Felisiak
parent 6b17d13f26
commit 1c7799dbf7

View File

@ -436,9 +436,10 @@ This view function serves static files in development.
:py:mod:`mimetypes` module from the Python standard library, which itself :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 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 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 that the platform's map files are incorrect or need to be updated. This can
example, by installing or updating the ``mailcap`` package on a Red Hat be achieved, for example, by installing or updating the ``mailcap`` package
distribution, or ``mime-support`` on a Debian distribution. 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 This view is automatically enabled by :djadmin:`runserver` (with a
:setting:`DEBUG` setting set to ``True``). To use the view with a different :setting:`DEBUG` setting set to ``True``). To use the view with a different