mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[1.7.x] Clarified a contrib.sites deprecation and added to 1.7 release notes.
Backport of ba27f89587 from master
This commit is contained in:
@@ -1761,6 +1761,17 @@ FastCGI support
|
||||
FastCGI support via the ``runfcgi`` management command will be removed in
|
||||
Django 1.9. Please deploy your project using WSGI.
|
||||
|
||||
Moved objects in ``contrib.sites``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Following the app-loading refactor, two objects in
|
||||
``django.contrib.sites.models`` needed to be moved because they must be
|
||||
available without importing ``django.contrib.sites.models`` when
|
||||
``django.contrib.sites`` isn't installed. Import ``RequestSite`` from
|
||||
``django.contrib.sites.requests`` and ``get_current_site()`` from
|
||||
``django.contrib.sites.shortcuts``. The old import locations will work until
|
||||
Django 1.9.
|
||||
|
||||
.. removed-features-1.7:
|
||||
|
||||
Features removed in 1.7
|
||||
|
||||
Reference in New Issue
Block a user