-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulti_blog.py
More file actions
20 lines (17 loc) · 940 Bytes
/
multi_blog.py
File metadata and controls
20 lines (17 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import webapp2
from handlers import MainPage, BlogFront, NewPost, PostPage, Register
from handlers import Login, Logout, Like, PostEdit, PostDelete, CommentEdit
from handlers import CommentDelete
app = webapp2.WSGIApplication([('/', MainPage),
('/blog/?', BlogFront),
('/blog/([0-9]+)', PostPage),
('/blog/newpost', NewPost),
('/signup', Register),
('/login', Login),
('/logout', Logout),
('/like/([0-9]+)', Like),
('/edit/([0-9]+)', PostEdit),
('/delete/([0-9]+)', PostDelete),
('/c_edit/([0-9]+)', CommentEdit),
('/c_delete/([0-9]+)', CommentDelete)],
debug=True)