membersystem/project/context_processors.py

8 lines
238 B
Python
Raw Normal View History

"""Context processors for the membersystem app."""
from django.contrib.sites.shortcuts import get_current_site
def current_site(request):
"""Include the current site in the context."""
2019-08-31 22:27:36 +00:00
return {"site": get_current_site(request)}