mirror of
https://github.com/django/django.git
synced 2025-11-03 05:13:23 +00:00
Fixed #12066 - Moved auth context processor from core to the auth app. Thanks, Rob Hudson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1559f64549
commit
67d4289c2e
9 changed files with 68 additions and 39 deletions
|
|
@ -86,6 +86,11 @@ their deprecation, as per the :ref:`Django deprecation policy
|
|||
``django.contrib.syndication`` have been deprecated since the 1.2
|
||||
release. The class-based view ``views.Feed`` should be used instead.
|
||||
|
||||
* ``django.core.context_processors.auth``. This release will
|
||||
remove the old method in favor of the new method in
|
||||
``django.contrib.auth.context_processors.auth``. This has been
|
||||
deprecated since the 1.2 release.
|
||||
|
||||
* 2.0
|
||||
* ``django.views.defaults.shortcut()``. This function has been moved
|
||||
to ``django.contrib.contenttypes.views.shortcut()`` as part of the
|
||||
|
|
|
|||
|
|
@ -1367,7 +1367,7 @@ TEMPLATE_CONTEXT_PROCESSORS
|
|||
|
||||
Default::
|
||||
|
||||
("django.core.context_processors.auth",
|
||||
("django.contrib.auth.context_processors.auth",
|
||||
"django.core.context_processors.debug",
|
||||
"django.core.context_processors.i18n",
|
||||
"django.core.context_processors.media",
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ called **context processors** -- that take a request object as their argument
|
|||
and return a dictionary of items to be merged into the context. By default,
|
||||
:setting:`TEMPLATE_CONTEXT_PROCESSORS` is set to::
|
||||
|
||||
("django.core.context_processors.auth",
|
||||
("django.contrib.auth.context_processors.auth",
|
||||
"django.core.context_processors.debug",
|
||||
"django.core.context_processors.i18n",
|
||||
"django.core.context_processors.media",
|
||||
|
|
@ -360,8 +360,8 @@ optional, third positional argument, ``processors``. In this example, the
|
|||
|
||||
Here's what each of the default processors does:
|
||||
|
||||
django.core.context_processors.auth
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
django.contrib.auth.context_processors.auth
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If :setting:`TEMPLATE_CONTEXT_PROCESSORS` contains this processor, every
|
||||
``RequestContext`` will contain these three variables:
|
||||
|
|
|
|||
|
|
@ -1236,8 +1236,8 @@ The currently logged-in user and his/her permissions are made available in the
|
|||
Technically, these variables are only made available in the template context
|
||||
if you use :class:`~django.template.context.RequestContext` *and* your
|
||||
:setting:`TEMPLATE_CONTEXT_PROCESSORS` setting contains
|
||||
``"django.core.context_processors.auth"``, which is default. For more, see
|
||||
the :ref:`RequestContext docs <subclassing-context-requestcontext>`.
|
||||
``"django.contrib.auth.context_processors.auth"``, which is default. For
|
||||
more, see the :ref:`RequestContext docs <subclassing-context-requestcontext>`.
|
||||
|
||||
Users
|
||||
-----
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue