-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
28 lines (25 loc) · 877 Bytes
/
urls.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
#! /usr/bin/env python
#coding=utf-8
from handler import home, admin, upload
homeurls = [
#前台
(r"/",home.Home),
(r"/c/([0-9]+)/a/([0-9]+)",home.showArticle),
(r"/c/([0-9]+)",home.showList),
(r"/aboutus",home.showAbout),
(r"/signin",admin.Signin),
(r"/signout",admin.Signout),
(r"/admin",admin.AdminHome),
(r"/admin/changearticlechecked",admin.ChangeArticleChecked),
(r"/admin/editpage",admin.EditPage),
(r"/admin/delpage",admin.DelPage),
(r"/admin/edittype",admin.TypeOption),
(r"/admin/deltype",admin.DelType),
(r"/admin/changetypechecked",admin.ChangeTypeChecked),
(r"/admin/editlink",admin.LinkOption),
(r"/admin/dellink",admin.DelLink),
(r"/admin/aboutus",admin.SettingsOption),
(r"/upload?",upload.ImageUpload),
(r"/changelang",home.changeLang),
(r'/c/([0-9]+)/date/([0-9]+)/([0-9]+)',home.listByDate),
]