Workout With Friends Stay fit with a little motivation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Properties
__init__.py
Go to the documentation of this file.
1 from sqlalchemy.engine import engine_from_config
2 from wowf.lib.fulltext import initialize_fulltext
3 from wowf.models.challenge import *
4 from wowf.models.lookup_tables import *
5 from wowf.models.meta import *
6 from wowf.models.notification import *
7 from wowf.models.pivot_tables import *
8 from wowf.models.tokens import *
9 from wowf.models.user import *
10 from wowf.models.workout import *
11
12
13 ##
14 #
15 # Initialize the SQLAlchemy connections.
16 #
17 def initialize_sqla(settings):
18 initialize_fulltext(settings)
19 engine = engine_from_config(settings, 'sqlalchemy.')
20 DBSession.configure(bind=engine)
21 Base.metadata.bind = engine
22
23
24 ##
25 #
26 # Initialize the SQLAlchemy database.
27 #
28 def initialize_db(settings):
29 initialize_sqla(settings)
30 Base.metadata.create_all()
31 populate_lookups()
32