-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog_main.py
More file actions
28 lines (23 loc) · 756 Bytes
/
blog_main.py
File metadata and controls
28 lines (23 loc) · 756 Bytes
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
import webapp2
from google.appengine.ext.webapp.util import run_wsgi_app
import views
application = webapp2.WSGIApplication([
('/', views.MainPage),
('/post', views.PostHandler),
('/signin', views.SignInHandler),
('/userchecker', views.UserCheckerHandler),
('/logout', views.LogoutHandler),
('/delete', views.DeletePost),
('/delete_image', views.DeleteImage),
('/saved', views.SavedPage),
('/profile', views.ProfilePage),
('/about', views.AboutPage),
('/bubbles', views.Bubbles),
('/upload', views.Upload),
('/single', views.OnePost)
],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()