mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed typos in docs (django.contrib.site)
This commit is contained in:
parent
bf5430a20b
commit
907ac64641
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue