diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-11-11 21:44:33 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-11-11 21:44:33 +0000 |
| commit | 70edd4e103832dc95c42643365d1d676c6d5ded6 (patch) | |
| tree | 0f7a943a0fab4b35d1e06532f070b95740f2df06 /docs/ref/templates | |
| parent | 63023e6ad99da9030ceb60ffa6ff7c952660af6d (diff) | |
Reverted deprecation of media context processor (from r14293) to separate static files and media files a bit more.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14535 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/templates')
| -rw-r--r-- | docs/ref/templates/api.txt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 4bb61b80b7..aa4951eebe 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -311,8 +311,9 @@ and return a dictionary of items to be merged into the context. By default, ("django.contrib.auth.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", - "django.contrib.staticfiles.context_processors.staticfiles", - "django.contrib.messages.context_processors.messages") + "django.core.context_processors.media", + "django.contrib.messages.context_processors.messages", + "django.contrib.staticfiles.context_processors.staticfiles") .. versionadded:: 1.2 In addition to these, ``RequestContext`` always uses @@ -434,12 +435,6 @@ If :setting:`TEMPLATE_CONTEXT_PROCESSORS` contains this processor, every ``RequestContext`` will contain a variable ``MEDIA_URL``, providing the value of the :setting:`MEDIA_URL` setting. -.. versionchanged:: 1.3 - This context processor has been moved to the new - :doc:`/ref/contrib/staticfiles` app. Please use the new - ``django.contrib.staticfiles.context_processors.staticfiles`` - context processor. - django.core.context_processors.csrf ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
