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 |
|
11 |
app = create_app() |
12 |
|
13 |
db = getDBInstance() |
14 |
|
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 |
|
20 |
db.create_all() |