diff options
author | Primal Pappachan | 2012-03-26 18:11:31 +0530 |
---|---|---|
committer | Primal Pappachan | 2012-03-26 18:11:31 +0530 |
commit | 76ef9a53536974b7f5bea95665029c99fd24456b (patch) | |
tree | 21abc5d5ab17e4fe091b405267f7df8806ac35a0 | |
parent | 48ebae3d816d0da8648124b2ff46cf4295e827fb (diff) | |
download | aloha-76ef9a53536974b7f5bea95665029c99fd24456b.tar.gz aloha-76ef9a53536974b7f5bea95665029c99fd24456b.tar.bz2 aloha-76ef9a53536974b7f5bea95665029c99fd24456b.zip |
Added the reg no to all urls and changed the regex
-rw-r--r-- | allotter/urls.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/allotter/urls.py b/allotter/urls.py index 09383e0..6556c62 100644 --- a/allotter/urls.py +++ b/allotter/urls.py @@ -3,11 +3,9 @@ from django.conf.urls.defaults import patterns, url urlpatterns = patterns('allotter.views', url(r'^login/$', 'user_login'), url(r'^logout/$', 'user_logout'), - url(r'^apply/$', 'apply'), - url(r'^details/$', 'submit_details'), - url(r'^get_pdf/$', 'generate_pdf'), - url(r'^(?P<reg_no>\w+)/submit/$', 'submit_options'), #change into numbers - url(r'^(?P<reg_no>\w+)/complete/$', 'complete'), #change into numbers - url(r'^$', 'apply'), - #url(r'^quit/$', 'quit'), + url(r'^(?P<reg_no>\d+)/apply/$', 'apply'), + url(r'^(?P<reg_no>\d+)/details/$', 'submit_details'), + url(r'^(?P<reg_no>\d+)/get_pdf/$', 'generate_pdf'), + url(r'^(?P<reg_no>\d+)/submit/$', 'submit_options', name='submit_options'), + url(r'^(?P<reg_no>\d+)/complete/$', 'complete_allotment', name='complete_allotment'), ) |