Migration support, for awesomeness

This commit is contained in:
Ruud
2011-02-24 08:37:35 +01:00
parent 5a0613e8fb
commit 2fb578d4de
5 changed files with 53 additions and 2 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ def get_session(engine):
return scoped_session(sessionmaker(transactional = True, bind = engine))
def get_engine():
return create_engine('sqlite:///' + Env.get('db_path'), echo = False)
return create_engine(Env.get('db_path'), echo = False)
@web.route('/')