You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing code I like to run with
app.jinja_env.undefined = StrictUndefined
The default templates throw errors such as
File "/usr/local/lib/python3.5/dist-packages/flask_admin/templates/bootstrap2/admin/base.html", line 18, in block "head_css"
{% if admin_view.extra_css %}
jinja2.exceptions.UndefinedError: 'flask_admin.base.AdminIndexView object' has no attribute 'extra_css'
which look easy to fix, I'll make a PR. Do you see any downsides to adding some 'is defined' in the templates?
The text was updated successfully, but these errors were encountered:
TomGoBravo
added a commit
to TomGoBravo/flask-admin
that referenced
this issue
Oct 15, 2018
When developing code I like to run with
app.jinja_env.undefined = StrictUndefined
The default templates throw errors such as
which look easy to fix, I'll make a PR. Do you see any downsides to adding some 'is defined' in the templates?
The text was updated successfully, but these errors were encountered: