summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-07-31 07:22:38 -0400
committerTim Graham <timograham@gmail.com>2013-07-31 07:22:38 -0400
commit4d8ecbdfda4da95685a2a51906425c6baa58a09f (patch)
treefd1e764fa3ede6749b60af6b48895b798c841a4e /docs
parent7de35a9ef372eb47442d5d1278cc15b6155e5054 (diff)
Fixed some ReST errors; refs #20819.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/staticfiles.txt6
-rw-r--r--docs/releases/1.7.txt6
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 7b9a2048b5..f96c2e8a1b 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -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::
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 0d6a3fefdc..f0efe4f559 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -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.