aboutsummaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-01-15 18:50:05 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-03-03 22:22:14 +0100
commitf5c46617e377899ff61a38c80150ab53d2b33edc (patch)
tree462b50edbcb3ddcab918901ea9bdf63f05f3139c /manager.py
parentsplitting and refactoring the Restful api part (diff)
downloadnewspipe-f5c46617e377899ff61a38c80150ab53d2b33edc.tar.gz
newspipe-f5c46617e377899ff61a38c80150ab53d2b33edc.tar.bz2
newspipe-f5c46617e377899ff61a38c80150ab53d2b33edc.zip
adding news fields and migrations scripts
Diffstat (limited to 'manager.py')
-rwxr-xr-xmanager.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/manager.py b/manager.py
new file mode 100755
index 00000000..ca772b60
--- /dev/null
+++ b/manager.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+from flask.ext.script import Manager
+from flask.ext.migrate import Migrate, MigrateCommand
+
+from pyaggr3g470r import app, db
+
+
+Migrate(app, db)
+
+manager = Manager(app)
+manager.add_command('db', MigrateCommand)
+
+
+if __name__ == '__main__':
+ manager.run()
bgstack15