Skip to content

Commit

Permalink
Add DEBUG to template context
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jun 21, 2024
1 parent 030dea1 commit fc258bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bolt/bolt/views/templates.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from bolt.csrf.middleware import get_token
from bolt.exceptions import ImproperlyConfigured
from bolt.runtime import settings
from bolt.templates import Template, TemplateFileMissing
from bolt.utils.functional import lazy
from bolt.utils.html import format_html
Expand Down Expand Up @@ -31,6 +32,7 @@ def get_template_context(self) -> dict:
"request": self.request,
"csrf_input": csrf_input_lazy(self.request),
"csrf_token": csrf_token_lazy(self.request),
"DEBUG": settings.DEBUG,
}

def get_template_names(self) -> list[str]:
Expand Down

0 comments on commit fc258bd

Please sign in to comment.