-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
36 lines (27 loc) · 933 Bytes
/
main.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
# imports
import imports
import webapp2
import settings
import logging
#logging.getLogger().setLevel(settings.LOGGING_LEVEL)
#logging.debug('Initializing.')
# routes
routes = [
('/', 'handlers.index.Index'),
('/user/register', 'handlers.user.Register'),
('/user/profile', 'handlers.user.Profile'),
('/user/browser', 'handlers.user.Browser'),
('/challenges', 'handlers.challenge.All'),
('/challenges/DTU', 'handlers.challenge.AllCustom'),
('/challenge/sample', 'handlers.challenge.Sample'),
('/challenge/edit', 'handlers.challenge.Edit'),
('/challenge/judge', 'handlers.challenge.Judge'),
('/company/register', 'handlers.company.Register'),
('/company/profile', 'handlers.company.Profile'),
('/company/dashboard', 'handlers.company.Dashboard'),
]
app = webapp2.WSGIApplication(
routes = routes,
debug = settings.DEBUG,
config = settings.config,
)