app/urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 13 Aug 2009 03:20:01 +0530
changeset 44 6fda3f3cc873
parent 38 3cb38edbe05f
permissions -rw-r--r--
All fixed for revising reviews and copying over reviews.

from django.conf.urls.defaults import *
from django.conf import settings


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

urlpatterns = patterns('',
    # Example:
    # (r'^app/', include('app.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'^$', 'app.projrev.views.base.home'),
    (r'^login/$', 'app.projrev.views.login.login_validate'),
    (r'^create_account/$', 'app.projrev.views.login.create_account'),
    (r'^forgot_password/$', 'app.projrev.views.login.forgot_password'),
    (r'^logout/$', 'app.projrev.views.login.logout_view'),
    (r'^proposal/submit/$', 'app.projrev.views.proposal.getMicr'),
    (r'^proposal/submit/get_dfors$', 
     'app.projrev.views.proposal.getDistrictsForState'),
    (r'^proposal/submit/get_new_dfors$', 
     'app.projrev.views.proposal.getNewDistrictsForState'),
    (r'^proposal/submit/create/$', 'app.projrev.views.proposal.submit'),
#    disabled for now.
#    (r'^proposal/withdraw/(?P<micr_code>[A-Z]{6}\d{9})/$',
#     'app.projrev.views.proposal.withdraw'),
    (r'^proposal/submit/(?P<micr_code>[A-Z]{6}\d{9})/$',
     'app.projrev.views.proposal.submit'),
    (r'^proposal/review/$', 'app.projrev.views.proposal.review'),
    (r'^proposal/review/(?P<micr_code>[A-Z]{6}\d{9})/$', 
     'app.projrev.views.proposal.review'),
    (r'^proposal/review/(?P<micr_code>[A-Z]{6}\d{9})/(?P<review_id>\d+)/$', 
     'app.projrev.views.proposal.review'),
    (r'^proposal/rank/$', 'app.projrev.views.proposal.rank'),
    (r'^proposal/rank/(?P<micr_code>[A-Z]{6}\d{9})/$',
     'app.projrev.views.proposal.rank'),
     (r'^proposal/myreviews/$', 
      'app.projrev.views.proposal.listMyReviews'),
    (r'^site-content/(?P<path>.*)', 'django.views.static.serve',
        {'document_root': settings.MEDIA_ROOT}),

)