summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2011-05-01 19:32:41 +0100
committerMartin Green <martin.speleo@gmail.com>2011-05-01 19:32:41 +0100
commita26310767ba885bcb403e08f8060f045e4716e08 (patch)
tree935cdf586e354e94757c1f8dc88584e5f3a491a6 /urls.py
parentd38a767d7ca1b205be82b8cb674746f638f5fb52 (diff)
downloadtroggle-a26310767ba885bcb403e08f8060f045e4716e08.tar.gz
troggle-a26310767ba885bcb403e08f8060f045e4716e08.tar.bz2
troggle-a26310767ba885bcb403e08f8060f045e4716e08.zip
edit logbooks, new logbook format, increased database normalisation
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index 92f3c26..71312c0 100644
--- a/urls.py
+++ b/urls.py
@@ -33,6 +33,9 @@ urlpatterns = patterns('',
url(r'^expeditions/?$', object_list, {'queryset':Expedition.objects.all(),'template_name':'object_list.html'},name="expeditions"),
url(r'^personexpedition/(?P<first_name>[A-Z]*[a-z]*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-z]*)/(?P<year>\d+)/?$', views_logbooks.personexpedition, name="personexpedition"),
url(r'^logbookentry/(?P<date>.*)/(?P<slug>.*)/?$', views_logbooks.logbookentry,name="logbookentry"),
+ url(r'^newlogbookentry/(?P<expeditionyear>.*)$', views_logbooks.newLogbookEntry, name="newLogBookEntry"),
+ url(r'^editlogbookentry/(?P<expeditionyear>[^/]*)/(?P<pdate>[^/]*)/(?P<pslug>[^/]*)/$', views_logbooks.newLogbookEntry, name="editLogBookEntry"),
+ url(r'^deletelogbookentry/(?P<expeditionyear>[^/]*)/(?P<date>[^/]*)/(?P<slug>[^/]*)/$', views_logbooks.deleteLogbookEntry, name="deleteLogBookEntry"),
url(r'^cave/(?P<cave_id>[^/]+)/?$', views_caves.cave, name="cave"),
url(r'^cavedescription/(?P<cavedescription_name>[^/]+)/?$', views_caves.cave_description, name="cavedescription"),
@@ -83,6 +86,8 @@ urlpatterns = patterns('',
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
+ (r'^tinymce_media/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.TINY_MCE_MEDIA_ROOT, 'show_indexes': True}),
url(r'^survexblock/(.+)$', views_caves.survexblock, name="survexblock"),