Show More
@@ -1,16 +1,15 b'' | |||||
1 | from os.path import dirname as dn, join as jn |
|
1 | from os.path import dirname as dn, join as jn | |
|
2 | import os | |||
|
3 | import sys | |||
|
4 | ROOT = dn(dn(dn(os.path.realpath(__file__)))) | |||
|
5 | sys.path.append(ROOT) | |||
|
6 | ||||
2 | from pylons_app.lib.auth import get_crypt_password |
|
7 | from pylons_app.lib.auth import get_crypt_password | |
3 | from pylons_app.model import init_model |
|
8 | from pylons_app.model import init_model | |
4 | from pylons_app.model.db import User, Permission |
|
9 | from pylons_app.model.db import User, Permission | |
5 | from pylons_app.model.meta import Session, Base |
|
10 | from pylons_app.model.meta import Session, Base | |
6 | from sqlalchemy.engine import create_engine |
|
11 | from sqlalchemy.engine import create_engine | |
7 | import logging |
|
12 | import logging | |
8 | import os |
|
|||
9 | import sys |
|
|||
10 | ROOT = dn(dn(dn(os.path.realpath(__file__)))) |
|
|||
11 | sys.path.append(ROOT) |
|
|||
12 |
|
||||
13 |
|
||||
14 |
|
13 | |||
15 | log = logging.getLogger('db manage') |
|
14 | log = logging.getLogger('db manage') | |
16 | log.setLevel(logging.DEBUG) |
|
15 | log.setLevel(logging.DEBUG) |
General Comments 0
You need to be logged in to leave comments.
Login now