troggle-unchained/urls.py
substantialnoninfringinguser 3d7a5b15ad [svn] undo stupid change
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8091 by aaron @ 12/9/2008 6:51 PM
2009-05-13 05:24:10 +01:00

36 lines
1.1 KiB
Python

from django.conf.urls.defaults import *
from expo.views import *
import troggle.settings as settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'^cave/$', caveindex),
(r'^cave/(?P<cave_id>[^/]+)/$', cave),
(r'^cave/(?P<cave_id>[^/]+)/(?P<ent_letter>[^/]?)$', ent),
#(r'^cave/(?P<cave_id>[^/]+)/edit/$', edit_cave),
(r'^cavesearch/$', caveSearch),
(r'^survex/(?P<survex_file>.*)\.index$', index),
(r'^survex/(?P<survex_file>.*)\.svx$', svx),
(r'^survex/(?P<survex_file>.*)\.3d$', threed),
(r'^survex/(?P<survex_file>.*)\.log$', log),
(r'^survex/(?P<survex_file>.*)\.err$', err),
(r'^person/$', personindex),
(r'^person/(.*)$', person),
(r'^logbookentry/(.*)$', logbookentry),
(r'^logbooksearch/(.*)$', logbookSearch),
(r'^troggle/statistics/$', stats),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
(r'^troggle/site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)