Original address: http://www.suzf.net/thread-0613-153.html
Reprint must indicate original source
A few days ago from "spider_net" to find an article, is roughly the use of Highcharts + flask + MySQL built a simple monitoring system,
After a few struggles finally still to the ramming hold out, now summarizes, share to everybody. O_o
Partial error message:
* Detected change in ' flask_web.py ', reloading
* Restarting with Reloader
x.x.x.x––[11/jun/2015 15:24:14] "get/http/1.1″500–
Traceback (most recent):
...
...
File "/usr/lib64/python2.6/site-packages/jinja2/utils.py", line 195, in import_string
Return GetAttr (__import__ (module, none, none, [obj]), obj)
Attributeerror: ' Module ' object has no attribute ' Autoescape '
Workaround:
Yum Install Python-pip-y
Pip Install--upgrade JINJA2
Redhat official claims this is a bug for the more:
https://bugzilla.redhat.com/show_bug.cgi?id=799087
This article is from the "Jeffrey blog" blog, please be sure to keep this source http://oceanszf.blog.51cto.com/6268931/1661647
Faq_flask:attributeerror: ' Module ' object has no attribute ' Autoescape '