from django.contrib.sites.shortcuts import get_current_site as django_get_current_site def base_view_context(request): """Include the current site in the context.""" return {"site": django_get_current_site(request)}