mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
[1.6.x] Updated docs following deprecation of django.views.defaults.shortcut
Follows3f2befc
Backport of354009d67e
from master
This commit is contained in:
parent
8bd5251fd5
commit
52741004f6
2 changed files with 9 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue