Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: The 'autoescape' extension is deprecated and will be removed in Jinja 3.1 #44

Open
williamabreu opened this issue Oct 26, 2021 · 0 comments

Comments

@williamabreu
Copy link

williamabreu commented Oct 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant