-
Notifications
You must be signed in to change notification settings - Fork 3
/
urls.py
121 lines (113 loc) · 2.73 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
"""
Author: tianwei
Email: [email protected]
Description: main settings of Chemistry Tools Site
Created: 2013-3-10
"""
from django.conf.urls import patterns, include, url
from django.views.generic.simple import direct_to_template
from django.contrib import admin
#from gui import views as gui_views
from users import views as users_views
admin.autodiscover()
handler500 = 'djangotoolbox.errorviews.server_error'
urlpatterns = patterns('',
url(
r'^$',
direct_to_template, {'template': 'home/index.html'},
name='index'
),
url(
r'^newslist/',
direct_to_template, {'template': 'home/news-list.html'},
name='newslist',
),
url(
r'^admin/',
include(admin.site.urls),
name="admin"
),
url(
r'^accounts/',
include('registration.urls'),
name="accounts"
),
url(
r'^teacher/',
include('teacher.urls'),
name="teacher"
),
url(
r'^student/',
include('student.urls'),
name="student"
),
url(
r'^expert/',
include('expert.urls'),
name="expert"
),
url(
r'^academicStaff/',
include('academicStaff.urls'),
name="staff"
),
url(
r'^facultyStaff/',
include('facultyStaff.urls'),
name="staff"
),
url(
r'^news/',
include('news.urls'),
name="news"
),
url(
r'^show/showtime/$',
include('showtime.urls'),
name = "showtime"
),
url(
r'^newtask/$',
direct_to_template, {'template': 'features/newtask.html'},
#gui_views.basic_search
),
url(
r'^history/$',
direct_to_template, {'template': 'features/history.html'},
name="history"
),
url(
r'^details/$',
direct_to_template, {'template': 'features/details.html'},
name="details"
),
url(
r'^statistics/$',
direct_to_template, {'template': 'features/statistics.html'},
name="statistics"
),
url(
r'^features/$',
direct_to_template, {'template': 'introduction/features.html'},
name="features"
),
url(
r'^show/$',
direct_to_template, {'template': 'introduction/show.html'},
name="show"
),
url(
r'^settings/profile/$',
#direct_to_template, {'template': 'widgets/settings/profile.html'},
users_views.profile
),
url(
r'^settings/admin/$',
#direct_to_template, {'template': 'widgets/settings/admin.html'},
users_views.admin_account
),
)
urlpatterns += patterns('',
url(r'tinymce/', include('tinymce.urls')),
)