urls.py
author nishanth
Thu, 01 Jul 2010 16:40:24 +0530
changeset 83 76971eed55c6
parent 77 7315ee25bf83
permissions -rw-r--r--
created basic view for editing questions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
     1
from django.conf.urls.defaults import *
33750f11199f initial commit.
nishanth
parents:
diff changeset
     2
6
8929b82c1dbb added home page with minimum functionality
nishanth
parents: 5
diff changeset
     3
from offline.feedback import views as feed_views
8929b82c1dbb added home page with minimum functionality
nishanth
parents: 5
diff changeset
     4
from offline.event import views as event_views
12
81cd0140a0f2 created the register user functionality.
nishanth
parents: 11
diff changeset
     5
from offline.quiz import views as quiz_views
5
9a671f3eb24c created the add feedback functionality
nishanth
parents: 0
diff changeset
     6
72
665287ab8e3a now the checking for admin key is done via urls
nishanth
parents: 44
diff changeset
     7
from offline.settings import ADMIN_KEY as AK
665287ab8e3a now the checking for admin key is done via urls
nishanth
parents: 44
diff changeset
     8
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
     9
# Uncomment the next two lines to enable the admin:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    10
# from django.contrib import admin
33750f11199f initial commit.
nishanth
parents:
diff changeset
    11
# admin.autodiscover()
33750f11199f initial commit.
nishanth
parents:
diff changeset
    12
33750f11199f initial commit.
nishanth
parents:
diff changeset
    13
urlpatterns = patterns('',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    14
    # Example:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    15
    # (r'^offline/', include('offline.foo.urls')),
33750f11199f initial commit.
nishanth
parents:
diff changeset
    16
33750f11199f initial commit.
nishanth
parents:
diff changeset
    17
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
33750f11199f initial commit.
nishanth
parents:
diff changeset
    18
    # to INSTALLED_APPS to enable admin documentation:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    19
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
33750f11199f initial commit.
nishanth
parents:
diff changeset
    20
33750f11199f initial commit.
nishanth
parents:
diff changeset
    21
    # Uncomment the next line to enable the admin:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    22
    # (r'^admin/', include(admin.site.urls)),
7
dfedb369f32e first fixed on the urls and then gave the admin_key in settings and then created main admin page.
nishanth
parents: 6
diff changeset
    23
6
8929b82c1dbb added home page with minimum functionality
nishanth
parents: 5
diff changeset
    24
    (r'^$', event_views.event_home),
72
665287ab8e3a now the checking for admin key is done via urls
nishanth
parents: 44
diff changeset
    25
    (r'^event/admin/%s$'%AK, event_views.event_admin),
73
5c2c74afb94e checking for admin key is done via urls in all the views related to feedback
nishanth
parents: 72
diff changeset
    26
    (r'^event/create/%s$'%AK, event_views.event_create),
41
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    27
7
dfedb369f32e first fixed on the urls and then gave the admin_key in settings and then created main admin page.
nishanth
parents: 6
diff changeset
    28
    (r'^feedback/submit$', feed_views.submit_feedback),
73
5c2c74afb94e checking for admin key is done via urls in all the views related to feedback
nishanth
parents: 72
diff changeset
    29
    (r'^feedback/open/%s$'%AK, feed_views.open_feedback),
5c2c74afb94e checking for admin key is done via urls in all the views related to feedback
nishanth
parents: 72
diff changeset
    30
    (r'^feedback/close/%s$'%AK, feed_views.close_feedback),
5c2c74afb94e checking for admin key is done via urls in all the views related to feedback
nishanth
parents: 72
diff changeset
    31
    (r'^feedback/list/%s$'%AK, feed_views.list_feedbacks),
5c2c74afb94e checking for admin key is done via urls in all the views related to feedback
nishanth
parents: 72
diff changeset
    32
    (r'^feedback/report/%s$'%AK, feed_views.view_report),
41
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    33
77
7315ee25bf83 created another url for listing all the questions
nishanth
parents: 75
diff changeset
    34
    (r'^quiz/questions/list/%s$'%AK, event_views.list_questions),
83
76971eed55c6 created basic view for editing questions
nishanth
parents: 77
diff changeset
    35
    (r'^quiz/questions/edit/%s/(\w+)$'%AK, event_views.edit_question),
77
7315ee25bf83 created another url for listing all the questions
nishanth
parents: 75
diff changeset
    36
74
46c5ae6594df cheching for admin key in opening and closing of quiz is now done via urls
nishanth
parents: 73
diff changeset
    37
    (r'^quiz/open/%s$'%AK, event_views.open_quiz),
46c5ae6594df cheching for admin key in opening and closing of quiz is now done via urls
nishanth
parents: 73
diff changeset
    38
    (r'^quiz/close/%s$'%AK, event_views.close_quiz),
12
81cd0140a0f2 created the register user functionality.
nishanth
parents: 11
diff changeset
    39
    (r'^quiz$', quiz_views.start_page),
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 26
diff changeset
    40
    (r'^quiz/intro/(\w+)$', quiz_views.quiz_intro),
18
c66b4904ce5a ditchaxed username from start_quiz url
nishanth
parents: 17
diff changeset
    41
    (r'^quiz/start/$', quiz_views.start_quiz),
17
68c2932660b7 removed username from answer url
nishanth
parents: 16
diff changeset
    42
    (r'^quiz/answer/(\w+)$', quiz_views.answer),
21
ff6d34fc7137 added the quiz complete functionality
nishanth
parents: 18
diff changeset
    43
    (r'^quiz/complete/$', quiz_views.quiz_complete),
41
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    44
75
f7ee769f0d95 all the admin key checking is now done via urls
nishanth
parents: 74
diff changeset
    45
    (r'^quiz/toppers/%s/(\w+)$'%AK, event_views.list_toppers),
f7ee769f0d95 all the admin key checking is now done via urls
nishanth
parents: 74
diff changeset
    46
    (r'^quiz/user_dump/%s/(\w+)/(\w+)$'%AK, event_views.user_dump),
f7ee769f0d95 all the admin key checking is now done via urls
nishanth
parents: 74
diff changeset
    47
    (r'^quiz/que_dump/%s/(\w+)$'%AK, event_views.que_dump),
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
    48
)