diff --git a/tests/settings.py b/tests/settings.py index 55afe891c64..c41e71ea184 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -27,4 +27,11 @@ # For Push Health Usage dashboard NEW_RELIC_INSIGHTS_API_KEY = "123" +# This controls whether the Django debug toolbar should be shown or not +# https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#show-toolbar-callback +# "You can provide your own function callback(request) which returns True or False." +DEBUG_TOOLBAR_CONFIG = { + 'SHOW_TOOLBAR_CALLBACK': lambda request: False, +} + INSTALLED_APPS.remove('django.contrib.staticfiles') # noqa: F405