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") )