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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
from django.conf.urls.defaults import *
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
from django.conf import settings
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
# Uncomment the next two lines to enable the admin:
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
from django.contrib import admin
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
admin.autodiscover()
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
urlpatterns = patterns('',
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
    # Example:
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
    # (r'^app/', include('app.foo.urls')),
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
    # to INSTALLED_APPS to enable admin documentation:
2
023ed68d5b5b Home page redirect.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    15
    #(r'^admin/doc/', include('django.contrib.admindocs.urls')),
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
    # Uncomment the next line to enable the admin:
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
    (r'^admin/', include(admin.site.urls)),
2
023ed68d5b5b Home page redirect.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    19
    (r'^$', 'app.projrev.views.base.home'),
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
    (r'^login/$', 'app.projrev.views.login.login_validate'),
1
324233b04d76 Login mechanism.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    21
    (r'^create_account/$', 'app.projrev.views.login.create_account'),
324233b04d76 Login mechanism.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 0
diff changeset
    22
    (r'^forgot_password/$', 'app.projrev.views.login.forgot_password'),
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
    (r'^logout/$', 'app.projrev.views.login.logout_view'),
4
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    24
    (r'^proposal/submit/$', 'app.projrev.views.proposal.getMicr'),
22
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 18
diff changeset
    25
    (r'^proposal/submit/get_dfors$', 
0321f984fb16 Made form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 18
diff changeset
    26
     'app.projrev.views.proposal.getDistrictsForState'),
38
3cb38edbe05f Form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 31
diff changeset
    27
    (r'^proposal/submit/get_new_dfors$', 
3cb38edbe05f Form changes.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 31
diff changeset
    28
     'app.projrev.views.proposal.getNewDistrictsForState'),
4
8d9da911ed7d Withdraw of proposals.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    29
    (r'^proposal/submit/create/$', 'app.projrev.views.proposal.submit'),
18
05b9e60e6a10 Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 15
diff changeset
    30
#    disabled for now.
05b9e60e6a10 Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 15
diff changeset
    31
#    (r'^proposal/withdraw/(?P<micr_code>[A-Z]{6}\d{9})/$',
05b9e60e6a10 Changed CSS and removed Withdraw proposal.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 15
diff changeset
    32
#     'app.projrev.views.proposal.withdraw'),
2
023ed68d5b5b Home page redirect.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    33
    (r'^proposal/submit/(?P<micr_code>[A-Z]{6}\d{9})/$',
023ed68d5b5b Home page redirect.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    34
     'app.projrev.views.proposal.submit'),
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
    (r'^proposal/review/$', 'app.projrev.views.proposal.review'),
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
    (r'^proposal/review/(?P<micr_code>[A-Z]{6}\d{9})/$', 
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
     'app.projrev.views.proposal.review'),
44
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 38
diff changeset
    38
    (r'^proposal/review/(?P<micr_code>[A-Z]{6}\d{9})/(?P<review_id>\d+)/$', 
6fda3f3cc873 All fixed for revising reviews and copying over reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 38
diff changeset
    39
     'app.projrev.views.proposal.review'),
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
    (r'^proposal/rank/$', 'app.projrev.views.proposal.rank'),
15
8c9e6c98de82 Ranking of proposals view completion.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 4
diff changeset
    41
    (r'^proposal/rank/(?P<micr_code>[A-Z]{6}\d{9})/$',
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
     'app.projrev.views.proposal.rank'),
31
ef9fdc847543 Added list of My reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    43
     (r'^proposal/myreviews/$', 
ef9fdc847543 Added list of My reviews.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 22
diff changeset
    44
      'app.projrev.views.proposal.listMyReviews'),
0
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
    (r'^site-content/(?P<path>.*)', 'django.views.static.serve',
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
        {'document_root': settings.MEDIA_ROOT}),
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
c94bd9ae70d2 First commit.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
)