Put db in environment

This commit is contained in:
Ruud
2012-05-07 20:51:25 +02:00
parent 8832f692ac
commit cdaa2c03e4
3 changed files with 23 additions and 7 deletions
+2 -2
View File
@@ -238,9 +238,9 @@ class Properties(Entity):
def setup():
"""Setup the database and create the tables that don't exists yet"""
from elixir import setup_all, create_all
from couchpotato import get_engine
from couchpotato.environment import Env
engine = get_engine()
engine = Env.getEngine()
setup_all()
create_all(engine)