ImportError: cannot import name ‘secure_filename‘ from ‘werkzeug‘

thanks for reading

I report an error

Not only this one, another package FileStorage also reported an error

Approach


from werkzeug import secure_filename, FileStorage

replace with

from werkzeug.utils import secure_filename
from werkzeug.datastructures import FileStorage

Guess you like

Origin blog.csdn.net/GodGump/article/details/130748461