From 5438ce9d60bdb6924bbf28e041d251c004d9d9b2 Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 30 Mar 2009 08:12:50 +0200 Subject: [PATCH] [svn r8313] Decoupled get_absolute_url methods from urlconf by using reverse() --- troggle/urls.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/troggle/urls.py b/troggle/urls.py index 409c8649e..f296a5885 100644 --- a/troggle/urls.py +++ b/troggle/urls.py @@ -26,7 +26,8 @@ urlpatterns = patterns('', url(r'^logbookentry/(?P.*)/(?P.*)/?$', views_logbooks.logbookentry,name="logbookentry"), url(r'^survexblock/(.+)$', views_caves.survexblock, name="survexblock"), - url(r'^cavehref/(.+)$', views_caves.cavehref, name="cave"), + url(r'^cave/(?P[^/]+)/?$', views_caves.cave, name="cave"), + #url(r'^cavehref/(.+)$', views_caves.cave, name="cave"), url(r'^jgtfile/(.*)$', view_surveys.jgtfile, name="jgtfile"), url(r'^jgtuploadfile$', view_surveys.jgtuploadfile, name="jgtuploadfile"), @@ -41,7 +42,7 @@ urlpatterns = patterns('', url(r'^cavearea', caveArea, name="caveArea"), url(r'^survex/(.*?)\.index$', views_survex.index, name="survexindex"), - url(r'^cave/(?P[^/]+)/?$', views_caves.cavehref), + url(r'^cave/(?P[^/]+)/(?P\d\d\d\d)-(?P\d\d)(?P[ABCDX]?)?$', views_caves.qm, name="qm"), (r'^survex/(?P.*)\.svx$', svx), (r'^survex/(?P.*)\.3d$', threed), @@ -80,4 +81,6 @@ urlpatterns = patterns('', (r'^photos/(?P.*)$', 'django.views.static.serve', {'document_root': settings.PHOTOS_ROOT, 'show_indexes':True}), + + url(r'^trip_report/?$',views_other.tripreport,name="trip_report") )