• 感谢您的恢复和分享,已经可以在本地跑起来了。
    另外说明文档里面有一处拼写错误:manage

    migrate

    python manange.py db migrate

  • init database 报错了,请问是什么原因

    ➜ ~ python /Users/cgx/AutoLine-master/manage.py db init

    Traceback (most recent call last):
    File "/Users/cgx/AutoLine-master/manage.py", line 15, in
    from app import create_app, db
    File "/Users/cgx/AutoLine-master/app/init.py", line 20, in
    from config import config
    File "/Users/cgx/AutoLine-master/config.py", line 66, in
    class ProductionConfig(Config):
    File "/Users/cgx/AutoLine-master/config.py", line 68, in ProductionConfig
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') + "?charset=utf8" or 'sqlite:///' + os.path.join(basedir, 'AutoLine.sqlite')
    TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
    ➜ ~