diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-14 22:08:11 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-14 22:08:11 +0000 |
| commit | 6aae9b2aa413b16e77e864ac69aa616aa7e2d969 (patch) | |
| tree | 65c9eb2be8355457b60ab311d1a6da5ea1c59a0e /docs | |
| parent | 9b99a60cfa6a431a44cfb87c6b6417b3e1578511 (diff) | |
Changed django.contrib.auth.views.login to use RequestSite if the sites framework is not installed -- i.e., the sites framework is no longer required to use this view. See also [5654]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/authentication.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/authentication.txt b/docs/authentication.txt index 0f96504c74..7860b59d7d 100644 --- a/docs/authentication.txt +++ b/docs/authentication.txt @@ -436,7 +436,10 @@ template context variables: * ``next``: The URL to redirect to after successful login. This may contain a query string, too. * ``site_name``: The name of the current ``Site``, according to the - ``SITE_ID`` setting. See the `site framework docs`_. + ``SITE_ID`` setting. If you're using the Django development version and + you don't have the site framework installed, this will be set to the + value of ``request.META['SERVER_NAME']``. For more on sites, see the + `site framework docs`_. If you'd prefer not to call the template ``registration/login.html``, you can pass the ``template_name`` parameter via the extra arguments to the view in |
