Skip to content

Commit

Permalink
prevents upload of theme package to error out when DEBUG=0
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed Feb 11, 2025
1 parent 476b082 commit 6e9807e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion djaoapp/jinja2.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def environment(**options):
'FEATURES_REVERT_STRIPE_V2': settings.FEATURES_REVERT_STRIPE_V2
})
if settings.DEBUG:
env.filters['addslashes'] = django.template.defaultfilters.addslashes
env.globals.update({
'ASSETS_DEBUG': settings.ASSETS_DEBUG,
'FEATURES_DEBUG': settings.FEATURES_DEBUG,
Expand Down
4 changes: 2 additions & 2 deletions djaoapp/templates/jinja2/debug_toolbar/panels/templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <h4>{{templates|length}} Template(s)</h4>
{% if templates %}
<dl>
{% for template in templates %}
<dt><strong><a class="remoteCall toggleTemplate" href="{{ url('djdt:template_source') }}?template={{ template.template.name }}">{{ template.template.name|addslashes }}</a></strong></dt>
<dd><samp>{{ template.template.origin_name|addslashes }}</samp></dd>
<dt><strong><a class="remoteCall toggleTemplate" href="{{ url('djdt:template_source') }}?template={{ template.template.name }}">{{ template.template.name }}</a></strong></dt>
<dd><samp>{{ template.template.origin_name }}</samp></dd>
{% if template.context %}
<dd>
<div class="djTemplateShowContextDiv"><a class="djTemplateShowContext"><span class="toggleArrow">&#x25B6;</span> Toggle context</a></div>
Expand Down

0 comments on commit 6e9807e

Please sign in to comment.