aboutsummaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'manager.py')
-rwxr-xr-xmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager.py b/manager.py
index 008c7775..a4743895 100755
--- a/manager.py
+++ b/manager.py
@@ -5,6 +5,8 @@ from bootstrap import application, db, populate_g
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
+import pyaggr3g470r.models
+
Migrate(application, db)
manager = Manager(application)
@@ -15,7 +17,6 @@ def db_empty():
"Will drop every datas stocked in db."
with application.app_context():
populate_g()
- import pyaggr3g470r.models
pyaggr3g470r.models.db_empty(db)
@manager.command
@@ -23,7 +24,6 @@ def db_create():
"Will create the database from conf parameters."
with application.app_context():
populate_g()
- import pyaggr3g470r.models
pyaggr3g470r.models.db_create(db)
@manager.command
bgstack15