After run a test suite in my project, I got the following warning:
DeprecationWarning: The 'autoescape' extension is deprecated and will be removed in Jinja 3.1. This is built in now.
Looking in the Jinja documentation (changelog), I confirmed the message. So, I believe the self.env.add_extension('jinja2.ext.autoescape') in the _prepare_environment method (on core.py file) isn't necessary and should be removed.
After run a test suite in my project, I got the following warning:
Looking in the Jinja documentation (changelog), I confirmed the message. So, I believe the
self.env.add_extension('jinja2.ext.autoescape')
in the_prepare_environment
method (on core.py file) isn't necessary and should be removed.