mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #20819 -- Return 404 instead of 500 error when `staticfiles
` view is used in production.
This commit is contained in:
parent
5154c9f92c
commit
4c6ffcf721
4 changed files with 16 additions and 6 deletions
|
@ -350,6 +350,12 @@ This view function serves static files in development.
|
|||
**insecure**. This is only intended for local development, and should
|
||||
**never be used in production**.
|
||||
|
||||
.. versionchanged:: 1.7
|
||||
|
||||
Will now raise an :exc:`~django.http.Http404` exception instead of
|
||||
:exc:`~from django.core.exceptions.ImproperlyConfigured` when
|
||||
:setting:`DEBUG` is ``True``.
|
||||
|
||||
.. note::
|
||||
|
||||
To guess the served files' content types, this view relies on the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue