Skip to content

Commit 30ee558

Browse files
authored
Merge pull request #1383 from jdufresne/doc-mime
Add a "Troubleshooting" section to installation docs
2 parents 4de5021 + a2fc429 commit 30ee558

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/installation.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,16 @@ settings module::
9797
You can change the logic of determining whether or not the Debug Toolbar
9898
should be shown with the :ref:`SHOW_TOOLBAR_CALLBACK <SHOW_TOOLBAR_CALLBACK>`
9999
option. This option allows you to specify a custom function for this purpose.
100+
101+
Troubleshooting
102+
---------------
103+
104+
On some platforms, the Django ``runserver`` command may use incorrect content
105+
types for static assets. To guess content types, Django relies on the
106+
:mod:`mimetypes` module from the Python standard library, which itself relies
107+
on the underlying platform's map files. If you find improper content types for
108+
certain files, it is most likely that the platform's map files are incorrect or
109+
need to be updated. This can be achieved, for example, by installing or
110+
updating the ``mailcap`` package on a Red Hat distribution, ``mime-support`` on
111+
a Debian distribution, or by editing the keys under ``HKEY_CLASSES_ROOT`` in
112+
the Windows registry.

0 commit comments

Comments
 (0)