哪位大神指点下

2018-12-10 11:23:17 浏览数 (1)

文件是

代码语言:javascript复制
from flask_sqlalchemy import SQLAlchemy

import datetime
db = SQLAlchemy()


class Article(db.Model):
    a_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    time = db.Column(db.DateTime,default=datetime.datetime.now())
    day = db.Column(db.Integer)
    text = db.Column(db.Text)
    height = db.Column(db.Integer)
    weight = db.Column(db.Integer)
    dead_size = db.Column(db.Integer)

flask报错

File "C:UsersAdministratorAppDataLocalProgramsPythonPython36libloggingconfig.py", line 76, in fileConfig

formatters = _create_formatters(cp)

File "C:UsersAdministratorAppDataLocalProgramsPythonPython36libloggingconfig.py", line 121, in _create_formatters

class_name = cp[sectname].get("class")

TypeError: <flask_script.commands.Command object at 0x00000119203B6AC8>: get() missing 1 required keyword-only argument: 'kwargs'

0 人点赞