forked from hodersolutions/vanvia-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
36 lines (30 loc) · 873 Bytes
/
run.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
28
29
30
31
32
33
34
35
36
##########################################################################
# Name: Users
# Purpose: File contains Users
#
# Author: Siva Samudrala
#
# Created: 29/06/2019
# Copyright: (c) Hoder Solutions Pvt Ltd 2018 - Present
# Licence: <your licence>
##########################################################################
from main import *
from tools import dbfill
def init_db():
db.create_all()
dbfill.fill_reservations()
dbfill.fill_districts()
dbfill.fill_institutions()
dbfill.fill_religions()
dbfill.fill_roles()
dbfill.fill_standards()
dbfill.fill_states()
dbfill.fill_subjects()
dbfill.fill_towns()
dbfill.fill_users()
dbfill.fill_user_roles()
application = create_app()
# with application.app_context():
# init_db()
if __name__ == "__main__":
application.run(debug=True, port=5000)