-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.py
29 lines (25 loc) · 1.31 KB
/
admin.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
#import setup_django_version
import webapp2
import config
import post_deploy
import handlers
#post_deploy.run_deploy_task()
app = webapp2.WSGIApplication([
(config.url_prefix + '/admin/', handlers.AdminHandler),
(config.url_prefix + '/admin/posts', handlers.AdminHandler),
(config.url_prefix + '/admin/upload', handlers.UploadHandler),
(config.url_prefix + '/admin/pages', handlers.PageAdminHandler),
(config.url_prefix + '/admin/newpost', handlers.PostHandler),
(config.url_prefix + '/admin/post/(\d+)', handlers.PostHandler),
(config.url_prefix + '/admin/regenerate', handlers.RegenerateHandler),
(config.url_prefix + '/admin/stagefeed', handlers.FeedStageHandler),
(config.url_prefix + '/admin/commitfeed', handlers.FeedCommitHandler),
(config.url_prefix + '/admin/post/delete/(\d+)', handlers.DeleteHandler),
(config.url_prefix + '/admin/post/feed/(\d+)', handlers.FeedHandler),
# (config.url_prefix + '/admin/post/preview/(\d+)', handlers.PreviewHandler),
(config.url_prefix + '/preview/(\d+)', handlers.PreviewHandler),
(config.url_prefix + '/admin/delete/(.*)', handlers.DeleteImgHandler),
# (config.url_prefix + '/admin/newpage', handlers.PageHandler),
# (config.url_prefix + '/admin/page/delete/(/.*)', handlers.PageDeleteHandler),
# (config.url_prefix + '/admin/page/(/.*)', handlers.PageHandler),
])