django-fobi/examples/simple/context_processors.py
2022-07-12 22:53:28 +02:00

16 lines
302 B
Python

from django.conf import settings
__all__ = (
"disable_admin_tools",
"testing",
)
def disable_admin_tools(request):
"""Disable admin tools."""
return {"ADMIN_TOOLS_DISABLED": True}
def testing(request):
"""Put `testing` into context."""
return {"testing": settings.TESTING}