django
API Documentation
Modules
Classes
Names
django
.
contrib
.
sites
.
shortcuts
Toggle Private API
module documentation
Undocumented
Function
get​_current​_site
Check if contrib.sites is installed and return either the current
Site
object or a
RequestSite
object based on the request.
def
get_current_site
(request):
Check if contrib.sites is installed and return either the current
Site
object or a
RequestSite
object based on the request.