1
0
mirror of https://github.com/django/django.git synced 2024-12-25 10:35:48 +00:00

[1.7.x] Fixed typos in docs (django.contrib.site)

Backport of 907ac64641 from master.
This commit is contained in:
Thomas Schreiber 2014-03-21 17:24:49 +01:00 committed by Baptiste Mispelon
parent 563d6a6bba
commit 79989263a2
3 changed files with 3 additions and 3 deletions

View File

@ -389,7 +389,7 @@ If you often use this pattern::
...
there is simple way to avoid repetitions. Add
:class:`django.contrib.site.middleware.CurrentSiteMiddleware` to
:class:`django.contrib.sites.middleware.CurrentSiteMiddleware` to
:setting:`MIDDLEWARE_CLASSES`. The middleware sets the ``site`` attribute on
every request object, so you can use ``request.site`` to get the current site.

View File

@ -182,7 +182,7 @@ Enables session support. See the :doc:`session documentation
Site middleware
---------------
.. module:: django.contrib.site.middleware
.. module:: django.contrib.sites.middleware
:synopsis: Site middleware.
.. class:: CurrentSiteMiddleware

View File

@ -391,7 +391,7 @@ Minor features
:mod:`django.contrib.sites`
^^^^^^^^^^^^^^^^^^^^^^^^^^^
* The new :class:`django.contrib.site.middleware.CurrentSiteMiddleware` allows
* The new :class:`django.contrib.sites.middleware.CurrentSiteMiddleware` allows
setting the current site on each request.
:mod:`django.contrib.staticfiles`