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 | from swtstore.classes.models import Sweet, Context |
|
11 | from swtstore.classes.models.um import User, Group, Membership, setup_app |
|
12 | ||
13 | ||
14 | ||
15 | app = create_app() |
|
16 | ||
17 | setup_app(app) |
|
18 | ||
19 | db = getDBInstance() |
|
20 | ||
21 | db.create_all() |