Fixed #25710 -- Clarified the docs about what INTERNAL_IPS does.

This commit is contained in:
Alex Morozov 2015-11-11 11:26:07 +03:00 committed by Tim Graham
parent 92eced62cd
commit 5abed864ee
4 changed files with 12 additions and 4 deletions

View file

@ -144,6 +144,7 @@ Django's :ref:`template loaders <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
=====================

View file

@ -1528,9 +1528,12 @@ Default: ``[]`` (Empty list)
A list 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 <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

View file

@ -691,6 +691,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