15 lines
286 B
Python
Executable File
15 lines
286 B
Python
Executable File
#!/usr/bin/env python
|
|
from flask.ext.script import Manager
|
|
from flask.ext.migrate import Migrate, MigrateCommand
|
|
|
|
from accountant import app, db
|
|
|
|
manager = Manager(app)
|
|
|
|
migrate = Migrate(app, db)
|
|
|
|
manager.add_command('db', MigrateCommand)
|
|
|
|
if __name__ == "__main__":
|
|
manager.run()
|