-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
85 lines (66 loc) · 1.87 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#coding=utf-8
from django.conf.urls.defaults import *
from JJLsite.views import *
import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', Main),
(r'^main/$', Main),
(r'^illustration/$', Illustration),
(r'^bigillustration/(\d+)/(\d+)/$', Bigillustration),
(r'^blog/$', Blog),
(r'^bigblog/(\d+)/$', Bigblog),
(r'^aboutme/$', Aboutme),
(r'^game/$', Game),
(r'^search/$', Search),
(r'^ajaxsearch/$', AjaxSearch),
(r'^ajaxnextillustration/(\d+)/$', AjaxIllustration, {'prev': False}),
(r'^ajaxprevillustration/(\d+)/$', AjaxIllustration, {'prev': True}),
(r'^ajaxblog/(\d+)/$', AjaxBlog),
(r'^ajaxencode/$', AjaxEncode),
)
backend= patterns('',
(r'^upload/$', Upload),
(r'^doupload/$', DoUpload),
)
urlpatterns+= backend
media= patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{
'document_root': settings.STATIC_DIR,
'show_indexes': True
}),
)
urlpatterns+= media
ueditor= patterns('',
(r'^ue/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.UEDITOR_DIR
}),
(r'^ueupload/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.UEDITOR_UPDATE_DIR
}),
(r'^ueditor/(?P<target>[a-zA-Z]+)/$', UeditorController),
)
urlpatterns+= ueditor
admin= patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^clearCache/$', ClearCache),
(r'^getCacheIllustrationList/$', GetCacheIllustrationList),
(r'^deletecacheillitem/(\d+)/$', DeleteCacheIllItem),
)
urlpatterns+= admin
test= patterns('',
(r'^test/$', Test),
)
urlpatterns+= test
oth= patterns('',
(r'^other/$', Other),
(r'^ajaxother/$', AjaxOther),
)
urlpatterns+= oth
error= patterns('',
(r'^.*$', Error404),
)
urlpatterns+= error