Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed some ReST errors; refs #20819.

  • Loading branch information...
commit 4d8ecbdfda4da95685a2a51906425c6baa58a09f 1 parent 7de35a9
Tim Graham timgraham authored
Showing with 6 additions and 6 deletions.
  1. +3 −3 docs/ref/contrib/staticfiles.txt
  2. +3 −3 docs/releases/1.7.txt
6 docs/ref/contrib/staticfiles.txt
View
@@ -352,9 +352,9 @@ This view function serves static files in development.
.. 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``.
+ This view will now raise an :exc:`~django.http.Http404` exception instead
+ of :exc:`~django.core.exceptions.ImproperlyConfigured` when
+ :setting:`DEBUG` is ``False``.
.. note::
6 docs/releases/1.7.txt
View
@@ -122,10 +122,10 @@ Miscellaneous
* Loading empty fixtures emits a ``RuntimeWarning`` rather than raising
:class:`~django.core.management.CommandError`.
-* :view:`~django.contrib.staticfiles.views.serve` will now raise an
+* :func:`django.contrib.staticfiles.views.serve` will now raise an
:exc:`~django.http.Http404` exception instead of
- :exc:`~from django.core.exceptions.ImproperlyConfigured` when :setting:`DEBUG`
- is ``True``. This change removes the need to conditionally add the view to
+ :exc:`~django.core.exceptions.ImproperlyConfigured` when :setting:`DEBUG`
+ is ``False``. This change removes the need to conditionally add the view to
your root URLconf, which in turn makes it safe to reverse by name. It also
removes the ability for visitors to generate spurious HTTP 500 errors by
requesting static files that don't exist or haven't been collected yet.
Please sign in to comment.
Something went wrong with that request. Please try again.