-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
35 lines (31 loc) · 1.22 KB
/
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
#!/usr/bin/env python
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from models import *
from controllers import gallery
from controllers import contact
from controllers import admin
from controllers import images
def main():
application = webapp.WSGIApplication([
('/', gallery.MainHandler),
('/about', gallery.AboutHandler),
('/contact', contact.ContactHandler),
('/thanks', contact.ContactCompleteHandler),
('/admin/list', admin.ListArtHandler),
('/admin', admin.AdminHomeHandler),
('/admin/create', admin.CreateArtHandler),
(r'/admin/artwork/(.*)/edit', admin.EditFormHandler),
(r'/admin/artwork/(.*)', admin.ArtItemHandler),
(r'/admin/slideshow', admin.SlideshowAdminHandler),
(r'/admin/about', admin.AboutAdmin),
(r'/admin/seed', admin.SeedData),
(r'/photo/(.*)', images.PhotoHandler),
(r'/img/(.*)', images.Image),
(r'/gallery/(.*)', gallery.GalleryItemHandler),
(r'/(.*)/(.*)', gallery.GalleryHandler)
],
debug=True)
util.run_wsgi_app(application)
if __name__ == '__main__':
main()