This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
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() |