summaryrefslogtreecommitdiff
path: root/testapp/exam/urls.py
blob: 45458971a1fcb8cf32589a8f1dc804ceb3a151bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.conf.urls.defaults import patterns, include, url

urlpatterns = patterns('exam.views',
    url(r'^$', 'index'),
    url(r'^login/$', 'user_login'),
    url(r'^manage/$', 'prof_manage'),
    url(r'^addquestion/$', 'add_question'),
    url(r'^addquiz/$', 'add_quiz'),
    url(r'^grade_user/$', 'show_all_users'),
    url(r'^register/$', 'user_register'),
    url(r'^start/$', 'start'),
    url(r'^quit/$', 'quit'),
    url(r'^complete/$', 'complete'),
    url(r'^monitor/$', 'monitor'),
    url(r'^monitor/(?P<quiz_id>\d+)/$', 'monitor'),    
    url(r'^user_data/(?P<username>[a-zA-Z0-9_.]+)/$', 'user_data'),
    url(r'^grade_user/(?P<username>[a-zA-Z0-9_.]+)/$', 'grade_user'),
    url(r'^(?P<q_id>\d+)/$', 'question'),
    url(r'^(?P<q_id>\d+)/check/$', 'check'),
)