【发布时间】:2013-08-20 02:54:36
【问题描述】:
我将我的烧瓶应用程序部署到 aws beanstalk 中并遇到导入错误:
ImportError: No module named flask.ext.sqlalchemy
在我的 application.py 文件中,我有这个语句
from flask.ext.sqlalchemy import SQLAlchemy
它在我的机器上运行良好,但在 aws elastic beanstalk 中不起作用。
有人遇到过类似的问题吗?
【问题讨论】:
-
Flask-SQLAlchemy 扩展现在位于
flask_sqlalchemy。见the documentation。
标签: python amazon-web-services flask amazon-elastic-beanstalk flask-sqlalchemy