Skip to content
Snippets Groups Projects
Verified Commit f26fd025 authored by Mark's avatar Mark
Browse files

Change folder structure

parent e281ceb9
No related branches found
No related tags found
No related merge requests found
......@@ -25,5 +25,5 @@ def init_db(engine=engine):
# import all modules here that might define models so that
# they will be registered properly on the metadata. Otherwise
# you will have to import them first before calling init_db()
import models
import database.models
Base.metadata.create_all(bind=engine)
from database import Base
from database.database import Base
from flask_security import UserMixin, RoleMixin
from sqlalchemy import create_engine
from sqlalchemy.orm import relationship, backref
......
......@@ -4,8 +4,8 @@ from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from flask_security import SQLAlchemySessionUserDatastore
from models import User, Role, Application
from database import init_db
from database.models import User, Role, Application
from database.database import init_db
class DatabaseSetupTest(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment