accountant-ui/manage.py

15 lines
286 B
Python
Raw Normal View History

2015-06-05 23:34:04 +02:00
#!/usr/bin/env python
2013-12-03 22:22:25 +01:00
from flask.ext.script import Manager
2015-07-17 19:22:49 +02:00
from flask.ext.migrate import Migrate, MigrateCommand
2013-12-03 22:22:25 +01:00
2015-07-17 19:22:49 +02:00
from accountant import app, db
2013-12-03 22:22:25 +01:00
manager = Manager(app)
2015-07-17 19:22:49 +02:00
migrate = Migrate(app, db)
2013-12-03 22:22:25 +01:00
manager.add_command('db', MigrateCommand)
if __name__ == "__main__":
manager.run()