We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b00d1d commit 85e8e2cCopy full SHA for 85e8e2c
main/settings.py
@@ -352,9 +352,12 @@
352
"oauth2_provider.middleware.OAuth2TokenMiddleware",
353
"django_scim.middleware.SCIMAuthCheckMiddleware",
354
)
355
+ZEAL_ENABLE = get_bool(
356
+ name="ZEAL_ENABLE", default=False, description="Whether to enable zeal or not"
357
+)
358
359
# enable the zeal nplusone profiler only in debug mode or under pytest
-if DEBUG or ENVIRONMENT == "pytest":
360
+if ZEAL_ENABLE or ENVIRONMENT == "pytest":
361
INSTALLED_APPS += ("zeal",)
362
# this should be the first middleware so we catch any issues in our own middleware
363
MIDDLEWARE += ("zeal.middleware.zeal_middleware",)
0 commit comments