urls.py
author nishanth
Fri, 23 Apr 2010 12:27:19 +0530
changeset 53 8cc852e205aa
parent 44 ffc035725a4e
child 72 665287ab8e3a
permissions -rw-r--r--
added a ch_ip management command that sets IP of all the quizzes to null

from django.conf.urls.defaults import *

from offline.feedback import views as feed_views
from offline.event import views as event_views
from offline.quiz import views as quiz_views

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^offline/', include('offline.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),

    (r'^$', event_views.event_home),
    (r'^event/admin/(\w+)$', event_views.event_admin),
    (r'^event/create/(\w+)$', event_views.event_create),

    (r'^feedback/submit$', feed_views.submit_feedback),
    (r'^feedback/open/(\w+)$', feed_views.open_feedback),
    (r'^feedback/close/(\w+)$', feed_views.close_feedback),
    (r'^feedback/list/(\w+)$', feed_views.list_feedbacks),
    (r'^feedback/report/(\w+)$', feed_views.view_report),

    (r'^quiz/open/(\w+)$', event_views.open_quiz),
    (r'^quiz/close/(\w+)$', event_views.close_quiz),
    (r'^quiz$', quiz_views.start_page),
    (r'^quiz/intro/(\w+)$', quiz_views.quiz_intro),
    (r'^quiz/start/$', quiz_views.start_quiz),
    (r'^quiz/answer/(\w+)$', quiz_views.answer),
    (r'^quiz/complete/$', quiz_views.quiz_complete),

    (r'^quiz/toppers/(\w+)/(\w+)$', event_views.list_toppers),
    (r'^quiz/user_dump/(\w+)/(\w+)/(\w+)$', event_views.user_dump),
    (r'^quiz/que_dump/(\w+)/(\w+)$', event_views.que_dump),
)