library · inferred from evidence
jinja2
A modern and designer-friendly templating language for Python.
- ImportError: cannot import name 'escape' from 'jinja2'
Fixes ImportError: cannot import name 'escape' from 'jinja2' Use when jinja2>=3.1 with old Flask or old direct imports Not for: you want autoescaping in templates (that is a different feature)
- ImportError: cannot import name 'soft_unicode' from 'markupsafe'
Fixes ImportError: cannot import name 'soft_unicode' from 'markupsafe' Use when the traceback shows an old jinja2/flask importing soft_unicode from a new markupsafe Not for: your own code imports soft_unicode (just use soft_str)