urls.py
author nishanth
Thu, 22 Apr 2010 01:41:43 +0530
changeset 43 265ed367e8cc
parent 42 007d87112911
child 44 ffc035725a4e
permissions -rw-r--r--
renamed related_name fields appropriately
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
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
     7
# Uncomment the next two lines to enable the admin:
33750f11199f initial commit.
nishanth
parents:
diff changeset
     8
# from django.contrib import admin
33750f11199f initial commit.
nishanth
parents:
diff changeset
     9
# admin.autodiscover()
33750f11199f initial commit.
nishanth
parents:
diff changeset
    10
33750f11199f initial commit.
nishanth
parents:
diff changeset
    11
urlpatterns = patterns('',
33750f11199f initial commit.
nishanth
parents:
diff changeset
    12
    # Example:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    13
    # (r'^offline/', include('offline.foo.urls')),
33750f11199f initial commit.
nishanth
parents:
diff changeset
    14
33750f11199f initial commit.
nishanth
parents:
diff changeset
    15
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
33750f11199f initial commit.
nishanth
parents:
diff changeset
    16
    # to INSTALLED_APPS to enable admin documentation:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    17
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
33750f11199f initial commit.
nishanth
parents:
diff changeset
    18
33750f11199f initial commit.
nishanth
parents:
diff changeset
    19
    # Uncomment the next line to enable the admin:
33750f11199f initial commit.
nishanth
parents:
diff changeset
    20
    # (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
    21
6
8929b82c1dbb added home page with minimum functionality
nishanth
parents: 5
diff changeset
    22
    (r'^$', event_views.event_home),
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
    (r'^event/admin/(\w+)$', event_views.event_admin),
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
    24
    (r'^event/create/(\w+)$', event_views.event_create),
41
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    25
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
    26
    (r'^feedback/submit$', feed_views.submit_feedback),
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
    27
    (r'^feedback/open/(\w+)$', feed_views.open_feedback),
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/close/(\w+)$', feed_views.close_feedback),
10
7535305b1104 created list feedbacks page
nishanth
parents: 7
diff changeset
    29
    (r'^feedback/list/(\w+)$', feed_views.list_feedbacks),
11
afc41af983e5 added show_report functionality
nishanth
parents: 10
diff changeset
    30
    (r'^feedback/report/(\w+)$', feed_views.view_report),
41
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    31
23
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 21
diff changeset
    32
    (r'^quiz/open/(\w+)$', event_views.open_quiz),
26
10760aa2cf52 added close quiz functionality
nishanth
parents: 23
diff changeset
    33
    (r'^quiz/close/(\w+)$', event_views.close_quiz),
12
81cd0140a0f2 created the register user functionality.
nishanth
parents: 11
diff changeset
    34
    (r'^quiz$', quiz_views.start_page),
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 26
diff changeset
    35
    (r'^quiz/intro/(\w+)$', quiz_views.quiz_intro),
18
c66b4904ce5a ditchaxed username from start_quiz url
nishanth
parents: 17
diff changeset
    36
    (r'^quiz/start/$', quiz_views.start_quiz),
17
68c2932660b7 removed username from answer url
nishanth
parents: 16
diff changeset
    37
    (r'^quiz/answer/(\w+)$', quiz_views.answer),
21
ff6d34fc7137 added the quiz complete functionality
nishanth
parents: 18
diff changeset
    38
    (r'^quiz/complete/$', quiz_views.quiz_complete),
41
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    39
d424b9668a74 implemented list toppers function
nishanth
parents: 33
diff changeset
    40
    (r'^quiz/toppers/(\w+)/(\w+)$', event_views.list_toppers),
42
007d87112911 created a user_dump page that shows all the answers entered by user at one place
nishanth
parents: 41
diff changeset
    41
    (r'^quiz/user_dump/(\w+)/(\w+)/(\w+)', event_views.user_dump),
0
33750f11199f initial commit.
nishanth
parents:
diff changeset
    42
)