This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.sites.shortcuts import get_current_site | |
from django.utils.functional import SimpleLazyObject | |
def current_site(request): | |
def wrapped_get_current_site(): | |
return get_current_site(request=request) | |
return { | |
'CURRENT_SITE': SimpleLazyObject(wrapped_get_current_site), | |
} |
NewerOlder