Esempio n. 1
0
 def _init_db(self):
     from sqlalchemy.ext.declarative import declarative_base
     from common.models import get_engine
     from users.models import User
     engine = get_engine()
     Base = declarative_base()
     User.metadata.create_all(engine)
Esempio n. 2
0
 def _init_db(self):
     from sqlalchemy.ext.declarative import declarative_base
     from common.models import get_engine
     from users.models import User
     engine = get_engine()
     Base = declarative_base()
     User.metadata.create_all(engine)