小编won*_*oll的帖子

SQLAlchemy 错误:“TypeError:附加参数应命名为 <dialectname>_<argument>,得到 'nullable'”

问题

在学习有关使用 Flash 的教程时,我在使用 Flask 时遇到错误。由于我是一个基本的 Python 程序员,我不明白它为什么或有什么问题。

所以如果你不介意解释它或添加一个解释链接。

控制台打印错误

(不知道什么是重要的,抱歉)

C:\Users\name\Desktop\Eeverything on this computer\GCSE\Computer Science\free-style\organised\website>python flaskblog.py
C:\Users\name\Anaconda3\lib\site-packages\flask_sqlalchemy\__init__.py:835: 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 '
Traceback (most recent call last):
  File "flaskblog.py", line 22, in <module>
    class Post(db.Model):
  File "C:\Users\name\Anaconda3\lib\site-packages\flask_sqlalchemy\model.py", line 67, in __init__
    super(NameMetaMixin, cls).__init__(name, bases, d)
  File "C:\Users\name\Anaconda3\lib\site-packages\flask_sqlalchemy\model.py", line 121, in __init__
    super(BindMetaMixin, cls).__init__(name, bases, …
Run Code Online (Sandbox Code Playgroud)

python sqlalchemy flask

5
推荐指数
2
解决办法
6151
查看次数

标签 统计

flask ×1

python ×1

sqlalchemy ×1