general03 / flask-autoindex

Generates index page like mod_autoindex
https://flask-autoindex.readthedocs.io
MIT License
114 stars 34 forks source link

Flask-Autoindex 0.6.4 does not work with Werkzeug 1.0.0 #53

Closed OryJonay closed 4 years ago

OryJonay commented 4 years ago

Importing "cached_property" from werkzeug does not work anymore (https://github.com/general03/flask-autoindex/blob/master/flask_autoindex/__init__.py#L10), it should be imported from werkzeug.utils (https://github.com/pallets/werkzeug/blob/master/src/werkzeug/utils.py#L53).

There are probably more imports that need to be fixed, or just pin version of Werkzeug to 0.16.0.

general03 commented 4 years ago

Hello, I merged the fix https://github.com/general03/flask-autoindex/pull/54 now