-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
34 lines (26 loc) · 912 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
#!/usr/bin/python2.5
#
# Copyright 2009 Google Inc.
# Licensed under the Apache License, Version 2.0:
# http://www.apache.org/licenses/LICENSE-2.0
"""The main module that sets up URL handlers and runs the app.
This module uses the App Engine webapp library to assign
URL patterns to various classes. The classes are divided into
two modules, services and pages. Services are used behind-the-scenes,
pages are what the user sees.
"""
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
import pages
import services
def main():
application = webapp.WSGIApplication([
('/', pages.Home),
('/addpoints', pages.AddPoints),
('/userpoints', pages.UserPoints),
('/pointsforprizes', pages.PointsForPrizes),
('/service/addpoints', services.AddPoints),
], debug=True)
run_wsgi_app(application)
if __name__ == '__main__':
main()