This wasn’t documented anywhere, but kudos to the Jinja2 devs for making this so easy to figure out from the source code.
You need to add a new key to the environment:
env.policies['json.dumps_kwargs'] = {'ensure_ascii': False}
This wasn’t documented anywhere, but kudos to the Jinja2 devs for making this so easy to figure out from the source code.
You need to add a new key to the environment:
env.policies['json.dumps_kwargs'] = {'ensure_ascii': False}