-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
93 lines (68 loc) · 4.11 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
from django.conf.urls.defaults import patterns, include, url
import views
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from dajaxice.core import dajaxice_autodiscover
dajaxice_autodiscover()
from django.conf import settings
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'views.home', name='home'),
# url(r'^$', include('foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
(r'^favicon\.ico$', 'django.views.generic.RedirectView', {'url': '/resource/static/image/favicon.ico'}),
(r'^$',TemplateView.as_view(template_name ="index.html")),
(r'^index/$',TemplateView.as_view(template_name ="index.html")),
#(r'^topics/$',views.topics),
#(r'^questions/(?P<main_id>\d*)/(?P<sub_id>\d*)/$',views.questions),
#(r'^statistics/$',views.statistics),
#(r'^delete/(?P<type>\w*)/(?P<id>\d*)/$',views.delete_record),
#(r'^select_test/$',views.select_paper_topics),
#(r'^genPaper/(?P<p_sub_id>-?\d*)/(?P<p_topic_id>-?\d*)/(?P<p_subTopic_id>-?\d*)/$',views.gen_paper),
#(r'^select_question/(?P<main_id>-?\d*)/(?P<sub_id>-?\d*)/$',views.select_questions),
#(r'^answer_question/(?P<question_ID>-?\d*)/$',views.answer_question),
#(r'^test_sol_func/$',views.test_solution_checker),
#basic pages
(r'^menu/$',TemplateView.as_view(template_name ="menu.html")),
(r'^mathsection/(?P<subj_id>\d*)/$',views.AMaths_Menu),
(r'^question/(?P<list_type>.*)/(?P<subj_id>\d*)/(?P<page_no>\d*)/$',views.add_math_question),
(r'^concept/(?P<subj_id>\d*)/$',views.add_math_concept),
#(r'^display_addmath_question/(?P<question_id>\d*)/$',views.display_add_math_question),
#Analyzer section
(r'^analyzer/(?P<subj_id>\d*)/$',views.analyzer_main),
#url(r'^topic_distribution/(?P<paperset_id>\d*)/$', views.topic_distribution_chart),
#url(r'^topic_trend/$', views.topic_trend_chart),
(r'^analyzer/(?P<subj_id>\d*)/paper/concept_distribution/$',views.analyzer_paper_concept_distribution),
(r'^analyzer/(?P<subj_id>\d*)/paper/concept_trend/$',views.analyzer_paper_concept_trend),
(r'^analyzer/(?P<subj_id>\d*)/paper/formula_distribution/$',views.analyzer_paper_formula_distribution),
(r'^analyzer/(?P<subj_id>\d*)/paper/formula_trend/$',views.analyzer_paper_formula_trend),
(r'^analyzer/(?P<subj_id>\d*)/paper/topic_distribution/$',views.analyzer_paper_topic_distribution),
(r'^analyzer/(?P<subj_id>\d*)/paper/topic_trend/$',views.analyzer_paper_topic_trend),
(r'^analyzer/(?P<subj_id>\d*)/paper/tag_cloud/$',views.analyzer_paper_tag),
(r'^analyzer/(?P<subj_id>\d*)/topic/tag_cloud/$',views.analyzer_topic_tag),
(r'^analyzer_cluster/(?P<subj_id>\d*)/$',views.analyzer_topic_cluster),
(r'^result/(?P<page_no>\d*)/$',views.result),
#Admin for Add maths
(r'^math_admin/(?P<subj_id>\d*)/$',views.AddMaths_Admin),
(r'^math_admin_list/(?P<list_type>.*)/(?P<subj_id>\d*)/(?P<page_no>\d*)/$',views.AddMaths_Admin_ModifyQuestion),
(r'^math_admin_form/(?P<list_type>.*)/(?P<page_no>\d*)/(?P<subj_id>\d*)/(?P<list_id>.*)/(?P<question_id>-?\d*)/$',views.AddMaths_Admin_QuestionForm),
(r'^math_admin_preview/$',views.AddMaths_qPreview),
(r'^math_admin_modify/(?P<list_type>.*)/(?P<page_no>\d*)/(?P<subj_id>\d*)/$',views.AddMaths_qChange),
(r'^math_admin_delete/(?P<list_type>.*)/(?P<page_no>\d*)/(?P<subj_id>\d*)/$',views.AddMaths_qDelete),
(r'^math_admin_taglist/$',views.AddMaths_Admin_TagList),
(r'^math_admin_regenkeyword/$',views.AddMaths_Admin_RegenKeyword),
(r'^math_admin_tag_delete/$',views.AddMaths_Admin_DeleteTag),
(r'^math_admin_tag_form/$',views.AddMaths_Admin_TagForm),
(r'^math_admin_tag_save/$',views.AddMaths_Admin_SaveTag),
#helper for developers
(r'^math_admin_missing_sol/$',views.find_missing_sol),
(r'^%s/' % settings.DAJAXICE_MEDIA_PREFIX, include('dajaxice.urls')),
)
# This is needed to serve static files like images and css
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()