diff options
author | Madhusudan.C.S | 2010-07-20 19:17:47 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2010-07-20 19:17:47 +0530 |
commit | b2a1217cc769c444cd03cd307d78d0e91350bd6c (patch) | |
tree | fafe5b94bff24d7f932f56d70271384bd6b9f088 | |
parent | 5648e14261182622f32b89e318d51c47b508f3b6 (diff) | |
download | scipycon-b2a1217cc769c444cd03cd307d78d0e91350bd6c.tar.gz scipycon-b2a1217cc769c444cd03cd307d78d0e91350bd6c.tar.bz2 scipycon-b2a1217cc769c444cd03cd307d78d0e91350bd6c.zip |
Removed CSV download and re-ordered admin and comment URL patterns.
-rw-r--r-- | project/urls.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/project/urls.py b/project/urls.py index bd5423f..d7d34f5 100644 --- a/project/urls.py +++ b/project/urls.py @@ -1,10 +1,11 @@ +from django.conf import settings from django.conf.urls.defaults import include from django.conf.urls.defaults import patterns -from django.conf import settings +from django.conf.urls.defaults import url from django.contrib import admin from django.views.generic.simple import direct_to_template from django.views.generic.simple import redirect_to -from django.conf.urls.defaults import * + admin.autodiscover() @@ -16,10 +17,10 @@ SCOPE_ARG_PATTERN = r'(?P<scope>%s/%s)' % ( # Admin urlpatterns = patterns('', url(r'^$', redirect_to, {'url': '/%s/' % (settings.CURRENT_SCOPE)}), - url(r'^%s/$' % (SCOPE_ARG_PATTERN), - direct_to_template, {"template": "home.html"}, name='home'), (r'^comments/', include('django.contrib.comments.urls')), (r'^admin/(.*)', admin.site.root), + url(r'^%s/$' % (SCOPE_ARG_PATTERN), + direct_to_template, {"template": "home.html"}, name='home'), ) # Talks, etc. @@ -44,8 +45,6 @@ urlpatterns += patterns('project.scipycon.registration.views', 'submit_registration', name='scipycon_submit_registration'), url(r'^%s/edit-registration/(?P<id>\d+)/$' % (SCOPE_ARG_PATTERN), 'edit_registration', name='scipycon_edit_registration'), - url(r'^%s/download_csv/' % (SCOPE_ARG_PATTERN), - 'download_csv', name="download_csv"), ) # Authentication and Profile |