Disable django debug toolbar in El Proxito
@@ -4,6 +4,11 @@ from .docker_compose import DockerBaseSettings
class ProxitoDevSettings(DockerBaseSettings):
ROOT_URLCONF = 'readthedocs.proxito.urls'
+ # El Proxito does not have django-debug-toolbar installed
+ DEBUG_TOOLBAR_CONFIG = {
+ 'SHOW_TOOLBAR_CALLBACK': lambda request: False,
+ }
+
@property
def MIDDLEWARE(self): # noqa
classes = list(super().MIDDLEWARE)
