2008-10-26 21:04:06 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2008-12-08 04:28:03 +00:00
|
|
|
import troggle.settings as settings
|
2009-01-29 23:40:56 +00:00
|
|
|
|
|
|
|
from expo.views import * # flat import
|
|
|
|
from expo.views_caves import *
|
|
|
|
from expo.views_survex import *
|
|
|
|
|
2008-10-26 21:04:06 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2009-01-16 02:47:39 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^$', views_other.frontpage, name="frontpage"),
|
|
|
|
|
2009-02-23 04:16:50 +00:00
|
|
|
url(r'^caveindex/?$', views_caves.caveindex, name="caveindex"),
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^personindex$', views_logbooks.personindex, name="personindex"),
|
2009-01-24 23:59:45 +00:00
|
|
|
|
2009-02-16 08:31:26 +00:00
|
|
|
|
|
|
|
#(r'^person/(?P<person_id>\d*)/?$', views_logbooks.person),
|
2009-02-23 04:16:50 +00:00
|
|
|
url(r'^person/(?P<first_name>[A-Z]*[a-z\-\']*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-z\-]*)/?', views_logbooks.person, name="person"),
|
2009-02-16 08:31:26 +00:00
|
|
|
#url(r'^person/(\w+_\w+)$', views_logbooks.person, name="person"),
|
2009-03-02 01:30:45 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^expedition/(\d+)$', views_logbooks.expedition, name="expedition"),
|
2009-03-11 10:44:15 +00:00
|
|
|
#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'^personexpedition/(.+?)/(\d+)$', views_logbooks.personexpedition, name="personexpedition"),
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^logbookentry/(.+)$', views_logbooks.logbookentry,name="logbookentry"),
|
2009-01-24 18:36:58 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^survexblock/(.+)$', views_caves.survexblock, name="survexblock"),
|
|
|
|
url(r'^cavehref/(.+)$', views_caves.cavehref, name="cave"),
|
|
|
|
|
|
|
|
url(r'^jgtfile/(.*)$', view_surveys.jgtfile, name="jgtfile"),
|
|
|
|
url(r'^jgtuploadfile$', view_surveys.jgtuploadfile, name="jgtuploadfile"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-26 05:28:04 +00:00
|
|
|
url(r'^cave/(?P<cave_id>[^/]+)/?(?P<ent_letter>[^/])$', ent),
|
2008-12-08 05:10:45 +00:00
|
|
|
#(r'^cave/(?P<cave_id>[^/]+)/edit/$', edit_cave),
|
2009-02-26 05:28:04 +00:00
|
|
|
#(r'^cavesearch', caveSearch),
|
2009-01-24 18:49:51 +00:00
|
|
|
url(r'^cavearea', caveArea, name="caveArea"),
|
2009-01-17 23:25:59 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^survex/(.*?)\.index$', views_survex.index, name="survexindex"),
|
|
|
|
url(r'^cave/(?P<cave_id>[^/]+)/?$', views_caves.cavehref), # deprecated
|
2008-11-08 15:37:12 +00:00
|
|
|
(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),
|
2008-10-27 00:36:06 +00:00
|
|
|
|
2008-12-08 04:28:03 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^logbooksearch/(.*)/?$', views_logbooks.logbookSearch),
|
2009-01-19 00:22:54 +00:00
|
|
|
|
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^statistics/?$', views_other.stats, name="stats"),
|
2008-10-30 13:13:35 +00:00
|
|
|
|
2009-02-16 08:31:26 +00:00
|
|
|
url(r'^calendar/(?P<year>\d\d\d\d)/?$', views_other.calendar, name="calendar"),
|
2009-01-24 15:11:44 +00:00
|
|
|
|
2009-01-19 07:19:07 +00:00
|
|
|
url(r'^survey/?$', surveyindex, name="survey"),
|
2009-02-17 01:09:11 +00:00
|
|
|
url(r'^survey/(?P<year>\d\d\d\d)\#(?P<wallet_number>\d*)$', survey, name="survey"),
|
2009-01-15 06:22:54 +00:00
|
|
|
|
2008-12-13 23:17:33 +00:00
|
|
|
(r'^admin/doc/?', include('django.contrib.admindocs.urls')),
|
2008-10-26 21:04:06 +00:00
|
|
|
(r'^admin/(.*)', admin.site.root),
|
|
|
|
|
2009-01-29 23:02:03 +00:00
|
|
|
(r'^accounts/', include('registration.urls')),
|
|
|
|
(r'^profiles/', include('profiles.urls')),
|
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
# (r'^personform/(.*)$', personForm),
|
2009-01-29 23:02:03 +00:00
|
|
|
|
2008-12-09 18:58:32 +00:00
|
|
|
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
|
2008-12-08 04:28:03 +00:00
|
|
|
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
|
2008-10-26 21:04:06 +00:00
|
|
|
|
2009-01-17 23:25:59 +00:00
|
|
|
(r'^survey_files/listdir/(?P<path>.*)$', view_surveys.listdir),
|
|
|
|
(r'^survey_files/download/(?P<path>.*)$', view_surveys.download),
|
|
|
|
#(r'^survey_files/upload/(?P<path>.*)$', view_surveys.upload),
|
|
|
|
|
2009-01-15 06:22:54 +00:00
|
|
|
(r'^survey_scans/(?P<path>.*)$', 'django.views.static.serve',
|
|
|
|
{'document_root': settings.SURVEYS, 'show_indexes':True}),
|
|
|
|
|
2009-02-18 06:45:45 +00:00
|
|
|
(r'^photos/(?P<path>.*)$', 'django.views.static.serve',
|
2009-03-02 01:30:45 +00:00
|
|
|
{'document_root': settings.PHOTOS_ROOT, 'show_indexes':True}),
|
2008-10-26 21:04:06 +00:00
|
|
|
)
|