我是靠谱客的博主 温婉服饰,这篇文章主要介绍mysql database uri,未设置SQLALCHEMY_DATABASE_URI,现在分享给大家,希望可以做个参考。

I tried to work with CURD operation using Flask and SQLAlchemy.But getting Error while connecting to database.

Here is the Error log.

/usr/local/lib/python3.4/dist-packages/flask_sqlalchemy/__init__.py:819: UserWarning: SQLALCHEMY_DATABASE_URI not set. Defaulting to "sqlite:///:memory:".

'SQLALCHEMY_DATABASE_URI not set. Defaulting to '

/usr/local/lib/python3.4/dist-packages/flask_sqlalchemy/__init__.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True or False to suppress this warning.

'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '

here is my code & setup

# database.py

from flask import Flask

from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)

sqldb =

最后

以上就是温婉服饰最近收集整理的关于mysql database uri,未设置SQLALCHEMY_DATABASE_URI的全部内容,更多相关mysql内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(121)

评论列表共有 0 条评论

立即
投稿
返回
顶部