1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
website-2020-spike/website/common/context_processors.py

11 lines
237 B
Python
Raw Permalink Normal View History

2020-04-13 10:42:21 +01:00
from django.conf import settings
from django.utils.text import slugify
2020-04-13 10:42:21 +01:00
def settings_injector(request):
2020-04-13 10:42:21 +01:00
return {"settings": settings}
def view_name(request):
return {"view_name": slugify(request.resolver_match.func.__name__)}