mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-03-27 10:40:22 +00:00
13 lines
292 B
Python
13 lines
292 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}
|