From b4aa38d106e903a21773d3486885fd8d2fa8a660 Mon Sep 17 00:00:00 2001 From: Alex Morozov Date: Wed, 11 Nov 2015 11:26:07 +0300 Subject: [1.8.x] Fixed #25710 -- Clarified the docs about what INTERNAL_IPS does. Backport of 5abed864ee1cd31a0b920768b4abe85b26b43a4d from master --- docs/ref/contrib/admin/admindocs.txt | 1 + docs/ref/settings.txt | 9 ++++++--- docs/ref/templates/api.txt | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/admin/admindocs.txt b/docs/ref/contrib/admin/admindocs.txt index 6be06d4fc1..f129758243 100644 --- a/docs/ref/contrib/admin/admindocs.txt +++ b/docs/ref/contrib/admin/admindocs.txt @@ -137,6 +137,7 @@ Django's :ref:`template loaders `. This can be a handy way to check if the specified template exists and to show where on the filesystem that template is stored. +.. _admindocs-bookmarklets: Included Bookmarklets ===================== diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 734218df86..426cae5404 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1656,9 +1656,12 @@ Default: ``()`` (Empty tuple) A tuple of IP addresses, as strings, that: -* See debug comments, when :setting:`DEBUG` is ``True`` -* Receive X headers in admindocs if the ``XViewMiddleware`` is installed (see - :doc:`/ref/contrib/admin/admindocs`) +* Allow the :func:`~django.template.context_processors.debug` context processor + to add some variables to the template context. +* Can use the :ref:`admindocs bookmarklets ` even if + not logged in as a staff user. +* Are marked as "internal" (as opposed to "EXTERNAL") in + :class:`~django.utils.log.AdminEmailHandler` emails. .. setting:: LANGUAGE_CODE diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 5a2fa6a1ec..52721210e7 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -661,6 +661,8 @@ variables: django.template.context_processors.debug ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.. function:: debug + If this processor is enabled, every ``RequestContext`` will contain these two variables -- but only if your :setting:`DEBUG` setting is set to ``True`` and the request's IP address (``request.META['REMOTE_ADDR']``) is in the -- cgit v1.3