university-final-iot-backend/manage.py

16 lines
288 B
Python
Raw Normal View History

2018-04-27 08:47:24 +00:00
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
2018-09-20 20:08:44 +00:00
from app.core import app, db
2018-04-27 08:47:24 +00:00
app.config.from_object('config')
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()