Update
This commit is contained in:
parent
e371b7aabc
commit
be5bfa1fb5
10 changed files with 115 additions and 51 deletions
14
backend/manage.py
Normal file
14
backend/manage.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from flask_script import Manager
|
||||
from flask_migrate import Migrate, MigrateCommand
|
||||
|
||||
from flask import current_app as app
|
||||
from . import db
|
||||
|
||||
migrate = Migrate(app, db)
|
||||
manager = Manager(app)
|
||||
|
||||
manager.add_command('db', MigrateCommand)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
manager.run()
|
||||
Loading…
Add table
Add a link
Reference in a new issue