mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Moved RequestSite and get_current_site.
Following the app-loading refactor, these objects must live outside of django.contrib.sites.models because they must be available without importing the django.contrib.sites.models module when django.contrib.sites isn't installed. Refs #21680. Thanks Carl and Loic for reporting this issue.
This commit is contained in:
@@ -4,7 +4,8 @@ import os
|
||||
import re
|
||||
|
||||
from django.conf import global_settings, settings
|
||||
from django.contrib.sites.models import Site, RequestSite
|
||||
from django.contrib.sites.models import Site
|
||||
from django.contrib.sites.requests import RequestSite
|
||||
from django.contrib.admin.models import LogEntry
|
||||
from django.contrib.auth.models import User
|
||||
from django.core import mail
|
||||
|
||||
Reference in New Issue
Block a user