mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-04-08 23:40:58 +00:00
16 lines
302 B
Python
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}
|