Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

static: Make debug_mode for default_page_params follow the setting.

PIG2088dd1164979ae
diff --git a/zproject/jinja2/__init__.py b/zproject/jinja2/__init__.py
index 24ab8619864..ff54d05fb36 100644
--- a/zproject/jinja2/__init__.py
+++ b/zproject/jinja2/__init__.py
@@ -16,7 +16,7 @@ def environment(**options: Any) -> Environment:
env = Environment(**options)
env.globals.update(
default_page_params={
- "debug_mode": False,
+ "debug_mode": settings.DEBUG,
"webpack_public_path": staticfiles_storage.url(
settings.WEBPACK_LOADER["DEFAULT"]["BUNDLE_DIR_NAME"],
),