from django.conf.urls.defaults import * from expo.views import * import expo.view_surveys as view_surveys import troggle.settings as settings from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^$', frontPage), (r'^cave/?$', caveindex), (r'^cave/(?P[^/]+)/?$', cave), (r'^cave/(?P[^/]+)/?(?P[^/])$', ent), #(r'^cave/(?P[^/]+)/edit/$', edit_cave), (r'^cavesearch', caveSearch), (r'^survex/(?P.*)\.index$', index), (r'^survex/(?P.*)\.svx$', svx), (r'^survex/(?P.*)\.3d$', threed), (r'^survex/(?P.*)\.log$', log), (r'^survex/(?P.*)\.err$', err), url(r'^personindex$', personindex, name="personindex"), (r'^person/(?P\d*)(?P[a-zA-Z]*)[-_/\.\s(\%20)]*(?P[a-zA-Z]*)/?$', person), (r'^logbookentry/(.*)/?$', logbookentry), url(r'^logbooksearch/(.*)/?$', logbookSearch), url(r'^statistics/?$', stats, name="stats"), (r'^survey/?$', surveyindex), (r'^survey/(?P\d\d\d\d)\#(?P\d*)$', survey), (r'^admin/doc/?', include('django.contrib.admindocs.urls')), (r'^admin/(.*)', admin.site.root), (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), (r'^survey_files/listdir/(?P.*)$', view_surveys.listdir), (r'^survey_files/download/(?P.*)$', view_surveys.download), #(r'^survey_files/upload/(?P.*)$', view_surveys.upload), (r'^survey_scans/(?P.*)$', 'django.views.static.serve', {'document_root': settings.SURVEYS, 'show_indexes':True}), )