miracle2k / webassets

Asset management for Python web development.
BSD 2-Clause "Simplified" License
924 stars 259 forks source link

Jinja2 Base template loaded twice when upgrading werkzeug package #542

Closed supreme-core closed 1 year ago

supreme-core commented 2 years ago

Hi,

I am not sure if this is the right place to ask this?

I am encountering a strange issue when upgrading werkzeug==0.16.1 to 1.0.0. Any version higher than 1.0.0 will do. I am using Jinja2 for templates and multiple child templates have extended from the base template base.html

Using werkzeug==1.0.0 and higher can cause the base.html to load twice. The resulting page will contain two copies of base.html.

I've looked online for days for relevant materials but unable to find anything remotely smiliar to what I see.

I suspect it originate from one of the three packages. Jinja2, flask-assets, werkzeug.

I have a hunch that it is the loader from webassets that is causing it. Similar to the issue here

This is seriously a head-scratcher for me!