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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
from django.conf.urls import url
from yaksh import views
urlpatterns = [
url(r'^$', views.index, name="index"),
url(r'^login/$', views.user_login, name='login'),
url(r'^logout/$', views.user_logout, name="logout"),
url(r'^update_email/$', views.update_email, name="update_email"),
url(r'^activate/(?P<key>.+)$', views.activate_user, name="activate"),
url(r'^new_activation/$', views.new_activation, name='new_activation'),
url(r'^toggle_moderator/$', views.toggle_moderator_role,
name='toggle_moderator'),
url(r'^quizzes/$', views.quizlist_user, name='quizlist_user'),
url(r'^results/$', views.results_user),
url(r'^start/(?P<questionpaper_id>\d+)/(?P<module_id>\d+)/'
'(?P<course_id>\d+)/$', views.start, name="start_quiz"),
url(r'^start/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
'(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.start,
name="start_quiz"),
url(r'^quit/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
'(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.quit,
name="quit_quiz"),
url(r'^complete/$', views.complete, name="complete"),
url(r'^complete/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
'(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.complete,
name="complete"),
url(r'^register/$', views.user_register, name="register"),
url(r'^(?P<q_id>\d+)/check/$', views.check, name="check"),
url(r'^get_result/(?P<uid>\d+)/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
views.get_result),
url(r'^(?P<q_id>\d+)/check/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
'(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$',
views.check, name="check"),
url(r'^(?P<q_id>\d+)/skip/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
'(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$',
views.skip, name="skip_question"),
url(r'^(?P<q_id>\d+)/skip/(?P<next_q>\d+)/(?P<attempt_num>\d+)/'
'(?P<module_id>\d+)/(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$',
views.skip, name="skip_question"),
url(r'^enroll_request/(?P<course_id>\d+)/$', views.enroll_request,
name='enroll_request'),
url(r'^self_enroll/(?P<course_id>\d+)/$', views.self_enroll,
name='self_enroll'),
url(r'^view_answerpaper/(?P<questionpaper_id>\d+)/(?P<course_id>\d+)$',
views.view_answerpaper, name='view_answerpaper'),
url(r'^download/user_assignment/(?P<question_id>\d+)/(?P<user_id>\d+)/'
'(?P<quiz_id>\d+)/(?P<course_id>\d+)$',
views.download_assignment_file, name="download_user_assignment"),
url(r'^show_lesson/(?P<lesson_id>\d+)/(?P<module_id>\d+)/'
'(?P<course_id>\d+)/$', views.show_lesson, name='show_lesson'),
url(r'^quizzes/view_module/(?P<module_id>\d+)/(?P<course_id>\d+)/$',
views.view_module, name='view_module'),
url(r'^next_unit/(?P<course_id>\d+)/(?P<module_id>\d+)/'
'(?P<current_unit_id>\d+)/$', views.get_next_unit, name='next_unit'),
url(r'^next_unit/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
views.get_next_unit, name='next_unit'),
url(r'^next_unit/(?P<course_id>\d+)/(?P<module_id>\d+)/'
'(?P<current_unit_id>\d+)/(?P<first_unit>\d+)/$',
views.get_next_unit, name='next_unit'),
url(r'^course_modules/(?P<course_id>\d+)/$',
views.course_modules, name='course_modules'),
url(r'^forum/(?P<course_id>\d+)/$',
views.course_forum,
name='course_forum'),
url(r'^forum/(?P<course_id>\d+)/post/(?P<uuid>[0-9a-f-]+)/$',
views.post_comments,
name='post_comments'),
url(r'^forum/(?P<course_id>\d+)/post/(?P<uuid>[0-9a-f-]+)/delete/',
views.hide_post,
name='hide_post'),
url(r'^forum/(?P<course_id>\d+)/comment/(?P<uuid>[0-9a-f-]+)/delete/',
views.hide_comment,
name='hide_comment'),
url(r'^manage/$', views.prof_manage, name='manage'),
url(r'^manage/addquestion/$', views.add_question, name="add_question"),
url(r'^manage/addquestion/(?P<question_id>\d+)/$', views.add_question,
name="add_question"),
url(r'^manage/add_exercise/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
views.add_exercise, name='add_exercise'),
url(r'^manage/add_exercise/(?P<course_id>\d+)/(?P<module_id>\d+)/(?P<quiz_id>\d+)$',
views.add_exercise, name='edit_exercise'),
url(r'^manage/addquiz/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
views.add_quiz, name='add_quiz'),
url(r'^manage/addquiz/(?P<course_id>\d+)/(?P<module_id>\d+)/(?P<quiz_id>\d+)$',
views.add_quiz, name='edit_quiz'),
url(r'^manage/gradeuser/$', views.grade_user, name="grade_user"),
url(r'^manage/gradeuser/(?P<quiz_id>\d+)/(?P<course_id>\d+)/$',
views.grade_user, name="grade_user"),
url(r'^manage/gradeuser/(?P<quiz_id>\d+)/(?P<user_id>\d+)/'
'(?P<course_id>\d+)/$',
views.grade_user, name="grade_user"),
url(r'^manage/gradeuser/(?P<quiz_id>\d+)/(?P<user_id>\d+)/'
'(?P<attempt_number>\d+)/(?P<course_id>\d+)/$',
views.grade_user, name="grade_user"),
url(r'^manage/questions/$', views.show_all_questions,
name="show_questions"),
url(r'^manage/monitor/$', views.monitor, name="monitor"),
url(r'^manage/monitor/(?P<quiz_id>\d+)/(?P<course_id>\d+)/$',
views.monitor, name="monitor"),
url(r'^manage/user_data/(?P<user_id>\d+)/(?P<questionpaper_id>\d+)/'
'(?P<course_id>\d+)/$',
views.user_data, name="user_data"),
url(r'^manage/user_data/(?P<user_id>\d+)/$', views.user_data),
url(r'^manage/designquestionpaper/(?P<course_id>\d+)/(?P<quiz_id>\d+)/'
'(?P<questionpaper_id>\d+)/$',
views.design_questionpaper, name='designquestionpaper'),
url(r'^manage/designquestionpaper/(?P<course_id>\d+)/(?P<quiz_id>\d+)/$',
views.design_questionpaper, name='designquestionpaper'),
url(r'^manage/statistics/question/(?P<questionpaper_id>\d+)/'
'(?P<course_id>\d+)/$',
views.show_statistics, name="show_statistics"),
url(r'^manage/statistics/question/(?P<questionpaper_id>\d+)/'
'(?P<attempt_number>\d+)/(?P<course_id>\d+)/$',
views.show_statistics, name="show_statistics"),
url(r'^manage/download_quiz_csv/(?P<course_id>\d+)/(?P<quiz_id>\d+)/$',
views.download_quiz_csv, name="download_quiz_csv"),
url(r'^manage/duplicate_course/(?P<course_id>\d+)/$',
views.duplicate_course, name='duplicate_course'),
url(r'manage/courses/$', views.courses, name='courses'),
url(r'manage/add_course/$', views.add_course, name='add_course'),
url(r'manage/edit_course/(?P<course_id>\d+)$', views.add_course,
name='edit_course'),
url(r'manage/course_detail/(?P<course_id>\d+)/$', views.course_detail,
name='course_detail'),
url(r'manage/enroll/(?P<course_id>\d+)/$', views.enroll_reject_user,
name="enroll_reject_user"),
url(r'manage/enroll/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
views.enroll_user, name="enroll_user"),
url(r'manage/reject/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
views.reject_user, name="reject_user"),
url(r'manage/enrolled/reject/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
views.reject_user, {'was_enrolled': True},
name="reject_enrolled_user"),
url(r'manage/enrolled/reject/(?P<course_id>\d+)/$',
views.enroll_reject_user, {'was_enrolled': True},
name="reject_enrolled_users"),
url(r'manage/enroll/rejected/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
views.enroll_user, {'was_rejected': True},
name="enroll_rejected_user"),
url(r'manage/enroll/rejected/(?P<course_id>\d+)/$',
views.enroll_reject_user, {'was_rejected': True},
name="enroll_rejected_users"),
url(r'manage/upload_users/(?P<course_id>\d+)/$', views.upload_users,
name="upload_users"),
url(r'manage/send_mail/(?P<course_id>\d+)/$', views.send_mail,
name="send_mail"),
url(r'manage/toggle_status/(?P<course_id>\d+)/$',
views.toggle_course_status, name="toggle_course_status"),
url(r'^questions/filter$', views.questions_filter,
name="questions_filter"),
url(r'^editprofile/$', views.edit_profile, name='edit_profile'),
url(r'^viewprofile/$', views.view_profile, name='view_profile'),
url(r'^manage/searchteacher/(?P<course_id>\d+)/$', views.search_teacher,
name="search_teacher"),
url(r'^manage/addteacher/(?P<course_id>\d+)/$', views.add_teacher,
name='add_teacher'),
url(r'^manage/remove_teachers/(?P<course_id>\d+)/$', views.remove_teachers,
name='remove_teacher'),
url(r'^manage/download_questions/$', views.show_all_questions,
name="download_questions"),
url(r'^manage/upload_questions/$', views.show_all_questions,
name="upload_questions"),
url(r'^manage/grader/$', views.grader, name='grader'),
url(r'^manage/regrade/question/(?P<course_id>\d+)/(?P<question_id>\d+)/$',
views.regrade, name='regrade'),
url(r'^manage/regrade/questionpaper/(?P<course_id>\d+)/'
'(?P<question_id>\d+)/(?P<questionpaper_id>\d+)/$',
views.regrade, name='regrade'),
url(r'^manage/regrade/answerpaper/(?P<course_id>\d+)/'
'(?P<question_id>\d+)/(?P<answerpaper_id>\d+)/$',
views.regrade, name='regrade'),
url(r'^manage/regrade/paper/(?P<course_id>\d+)/(?P<answerpaper_id>\d+)/$',
views.regrade, name='regrade'),
url(r'^manage/(?P<mode>godmode|usermode)/(?P<quiz_id>\d+)/'
'(?P<course_id>\d+)/$', views.test_quiz, name="test_quiz"),
url(r'^manage/create_demo_course/$', views.create_demo_course,
name="create_demo_course"),
url(r'^manage/courses/download_course_csv/(?P<course_id>\d+)/$',
views.download_course_csv, name="download_course_csv"),
url(r'^manage/download/user_assignment/(?P<question_id>\d+)/'
'(?P<user_id>\d+)/(?P<quiz_id>\d+)/(?P<course_id>\d+)$',
views.download_assignment_file, name="download_user_assignment"),
url(r'^manage/download/quiz_assignments/(?P<quiz_id>\d+)/'
'(?P<course_id>\d+)$', views.download_assignment_file,
name="download_quiz_assignment"),
url(r'^manage/courses/download_yaml_template/',
views.download_yaml_template, name="download_yaml_template"),
url(r'^manage/download_sample_csv/',
views.download_sample_csv, name="download_sample_csv"),
url(r'^manage/courses/edit_lesson/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
views.edit_lesson, name="edit_lesson"),
url(r'^manage/courses/edit_lesson/(?P<course_id>\d+)/(?P<module_id>\d+)/(?P<lesson_id>\d+)/$',
views.edit_lesson, name="edit_lesson"),
url(r'^manage/courses/designmodule/(?P<module_id>\d+)/$',
views.design_module, name="design_module"),
url(r'^manage/courses/designmodule/(?P<module_id>\d+)/'
'(?P<course_id>\d+)/$', views.design_module, name="design_module"),
url(r'^manage/courses/lesson/preview/$',
views.preview_html_text, name="preview_html_text"),
url(r'^manage/courses/add_module/(?P<course_id>\d+)/$',
views.add_module, name="add_module"),
url(r'^manage/courses/add_module/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
views.add_module, name="edit_module"),
url(r'^manage/courses/designcourse/(?P<course_id>\d+)/$',
views.design_course, name="design_course"),
url(r'^manage/course_status/(?P<course_id>\d+)/$',
views.course_status, name="course_status"),
url(r'^manage/preview_questionpaper/(?P<questionpaper_id>\d+)/$',
views.preview_questionpaper, name="preview_questionpaper"),
url(r'^manage/get_user_status/(?P<course_id>\d+)/(?P<student_id>\d+)/$',
views.get_user_data, name="get_user_data"),
url(r'^manage/courses/download_course/(?P<course_id>\d+)/$',
views.download_course, name="download_course"),
url(r'^download_course/(?P<course_id>\d+)/$',
views.download_course, name="download_course"),
url(r'^manage/course/enrollments/(?P<course_id>\d+)',
views.course_students, name="course_students"),
url(r'^manage/course/all/modules/(?P<course_id>\d+)',
views.get_course_modules, name="get_course_modules"),
url(r'^manage/course/teachers/(?P<course_id>\d+)',
views.course_teachers, name="course_teachers"),
url(r'^manage/download/course/progress/(?P<course_id>\d+)',
views.download_course_progress, name="download_course_progress"),
url(r'^manage/question/download/(?P<question_id>\d+)',
views.download_question, name="download_question"),
url(r'^manage/question/test/(?P<question_id>\d+)',
views.test_question, name="test_question"),
url(r'^manage/question/delete/(?P<question_id>\d+)',
views.delete_question, name="delete_question"),
url(r'^manage/search/questions', views.search_questions_by_tags,
name="search_questions_by_tags"),
]
|