启动flask服务器时出现操作错误

时间:2017-11-22 10:36:38

标签: python postgresql flask-sqlalchemy

当我通过输入命令 python run.py 运行flask服务器时,我收到以下错误。我正在使用postgresql db。怎么解决这个问题?

enter image description here

提前致谢!

1 个答案:

答案 0 :(得分:0)

与Postgresql连接时出错。 Flask应用程序无法使用以下连接字符串postgresql:// fish:postgres @ localhost:5433 / exam_app连接到您的数据库。尝试使用此credentional手动连接到db,也可以使用PgAdmin,您将看到此地址无法使用db。