membersystem/src/utils/view_utils.py

7 lines
226 B
Python

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)}