-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.py
39 lines (28 loc) · 1.68 KB
/
blog.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
37
38
39
#from handlers import blogfront, bloghandler, comments, \
# deletecomments, deletepost, editcomments, frontpage, likepost,\
# login, logout, newpost, postedit, postpage, register, signup, welcome
#from handlers import blogfront, frontpage, login, logout, newpost, \
# register, signup, welcome, likepost, postcomments, \
# deletecomments, deletepost, editcomments, postedit, \
# postpage
import webapp2
from handlers import BlogHandler, BlogFront, FrontPage, Login, Logout, \
NewPost, Register, Signup, Welcome, LikePost, PostComments, \
DeleteComments, DeletePost, EditComments, PostEdit, \
PostPage
app = webapp2.WSGIApplication([('/', FrontPage),
('/blog/?', BlogFront),
('/blog/([0-9]+)', PostPage),
('/blog/newpost', NewPost),
('/login', Login),
('/blog/postedit/([0-9]+)', PostEdit),
('/blog/deletepost/([0-9]+)', DeletePost),
('/blog/newcomment/([0-9]+)', PostComments),
('/blog/editcomment/([0-9]+)', EditComments),
('/blog/deletecomment/([0-9]+)', DeleteComments),
('/blog/like/([0-9]+)', LikePost),
('/signup', Register),
('/logout', Logout),
('/welcome', Welcome),
],
debug=True)