mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #15089 -- Allowed contrib.sites to lookup the current site based on request.get_host().
Thanks Claude Paroz, Riccardo Magliocchetti, and Damian Moore for contributions to the patch.
This commit is contained in:
@@ -139,7 +139,10 @@ Minor features
|
||||
:mod:`django.contrib.sites`
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
* ...
|
||||
* :func:`~django.contrib.sites.shortcuts.get_current_site` will now lookup
|
||||
the current site based on :meth:`request.get_host()
|
||||
<django.http.HttpRequest.get_host>` if the :setting:`SITE_ID` setting is not
|
||||
defined.
|
||||
|
||||
:mod:`django.contrib.staticfiles`
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user