[1.6.x] Updated docs following deprecation of django.views.defaults.shortcut

Follows 3f2befc

Backport of 354009d67e from master
This commit is contained in:
Alasdair Nicol 2013-08-15 00:27:16 +01:00 committed by Tim Graham
parent 8bd5251fd5
commit 52741004f6
2 changed files with 9 additions and 11 deletions

View file

@ -417,9 +417,10 @@ Here's how Django uses the sites framework:
:class:`~django.contrib.sites.models.Site` name to the template as
``{{ site_name }}``.
* The shortcut view (``django.views.defaults.shortcut``) uses the domain
of the current :class:`~django.contrib.sites.models.Site` object when
calculating an object's URL.
* The shortcut view (``django.contrib.contenttypes.views.shortcut``)
uses the domain of the current
:class:`~django.contrib.sites.models.Site` object when calculating
an object's URL.
* In the admin framework, the "view on site" link uses the current
:class:`~django.contrib.sites.models.Site` to work out the domain for the