예제 #1
0
파일: resources.py 프로젝트: rysev-a/smm
 def post(self):
     generate_from_mock(mock='roles', model=Role, db=db)
     generate_from_mock(mock='users', model=User, db=db)
     generate_from_mock(mock='projects', model=Project, db=db)
     generate_from_mock(mock='tasks', model=Task, db=db)
     generate_from_mock(mock='comments', model=Comment, db=db)
     generate_from_mock(mock='social-accounts', model=SocialAccount, db=db)
     generate_from_mock(mock='posts', model=Post, db=db)
     return {'message': 'ok'}
예제 #2
0
def generate_projects():
    generate_from_mock(mock='projects', model=Project, db=db)
예제 #3
0
def generate_roles():
    generate_from_mock(mock='roles', model=Role, db=db)
예제 #4
0
def generate_users():
    generate_from_mock(mock='users', model=User, db=db)
예제 #5
0
def generate_comments():
    generate_from_mock(mock='comments', model=Comment, db=db)
예제 #6
0
def generate_social_accounts():
    generate_from_mock(mock='social-accounts', model=SocialAccount, db=db)
예제 #7
0
def generate_posts():
    generate_from_mock(mock='posts', model=Post, db=db)