75d3bd6 by Anon Ray at 2014-02-19 1
# coding utf-8
2
3
import sys, os
4
5
BASE_DIR = os.path.join(os.path.dirname(__file__))
6
7
sys.path.insert(0, BASE_DIR)
8
9
from swtstore import create_app, getDBInstance
10
11
app = create_app()
12
13
db = getDBInstance()
14
d120774 by Anon Ray at 2014-03-08 15
# Import all modules which represents a SQLAlchemy model
16
# They have correspondin tables that are needed to be created
17
from swtstore.classes.models import Sweet, Context, Client
18
from swtstore.classes.models.um import User, Group, Membership
19
75d3bd6 by Anon Ray at 2014-02-19 20
db.create_all()
d120774 by Anon Ray at 2014-03-08 21
22