aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manage.py17
-rw-r--r--requirements.txt3
2 files changed, 20 insertions, 0 deletions
diff --git a/manage.py b/manage.py
new file mode 100644
index 00000000..9a9b7291
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import os
+from flask.ext.script import Manager
+from flask.ext.migrate import Migrate, MigrateCommand
+
+from pyaggr3g470r import app, db
+#app.config.from_object(os.environ['APP_SETTINGS'])
+
+migrate = Migrate(app, db)
+manager = Manager(app)
+
+manager.add_command('db', MigrateCommand)
+
+if __name__ == '__main__':
+ manager.run()
diff --git a/requirements.txt b/requirements.txt
index 11be3776..92849d30 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,3 +18,6 @@ WTForms
python-postmark
whoosh
python-dateutil
+alembic
+flask-migrate
+flask-script
bgstack15