Ticket #6287: braces.diff
File braces.diff, 1.0 KB (added by , 17 years ago) |
---|
-
sites.txt
330 330 retrieving flatpages to display. 331 331 332 332 * In the `syndication framework`_, the templates for ``title`` and 333 ``description`` automatically have access to a variable ``{{ { site }}}``,333 ``description`` automatically have access to a variable ``{{ site }}``, 334 334 which is the ``Site`` object representing the current site. Also, the 335 335 hook for providing item URLs will use the ``domain`` from the current 336 336 ``Site`` object if you don't specify a fully-qualified domain. 337 337 338 338 * In the `authentication framework`_, the ``django.contrib.auth.views.login`` 339 view passes the current ``Site`` name to the template as ``{{ { site_name }}}``.339 view passes the current ``Site`` name to the template as ``{{ site_name }}``. 340 340 341 341 * The shortcut view (``django.views.defaults.shortcut``) uses the domain of 342 342 the current ``Site`` object when calculating an object's URL.