flask在return代码时提示AttributeError: ‘Request’ object has no attribute ‘is_xhr’
解决办法,卸载Werkzeug,安装0.16版本.
pip uninstall Werkzeug && pip install Werkzeug==0.16
参考
https://stackoverflow.com/questions/60992849/attributeerror-request-object-has-no-attribute-is-xhr


![[flask]AttributeError: ‘Request‘ object has no attribute ‘is [flask]AttributeError: ‘Request‘ object has no attribute ‘is](http://www.mshxw.com/aiimages/31/321891.png)
