forked from ShiftSpace/shiftspace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
shell.py
27 lines (25 loc) · 916 Bytes
/
shell.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import server.utils.utils as utils
import server.models.core as core
from server.tests.dummy_data import *
from server.models.ssuser import SSUser
from server.models.shift import Shift
from server.models.group import Group
from server.models.permission import Permission
from server.models.favorite import Favorite
from server.models.comment import Comment
from server.models.follow import Follow
from server.models.message import Message
from server.lucene.lucene_design import LuceneDefinition
def reload_models():
import server
for m in [server.models.core,
server.models.ssuser,
server.models.shift,
server.models.group,
server.models.permission,
server.models.favorite,
server.models.comment,
server.models.message,
server.lucene.lucene_design]:
reload(m)
db = core.connect()