2008-10-26 21:04:06 +00:00
|
|
|
from django.conf.urls.defaults import *
|
2009-03-14 16:09:41 +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 *
|
2009-03-16 08:53:24 +00:00
|
|
|
from expo.models import *
|
|
|
|
from django.views.generic.create_update import create_object
|
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-05-08 21:16:57 +01:00
|
|
|
url(r'^todo/$', views_other.todo, name="todo"),
|
2009-01-29 23:40:56 +00:00
|
|
|
|
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-03-14 08:38:55 +00:00
|
|
|
url(r'^person/(?P<first_name>[A-Z]*[a-z\-\']*)[^a-zA-Z]*(?P<last_name>[a-z\-\']*[^a-zA-Z]*[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-14 08:38:55 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^expedition/(\d+)$', views_logbooks.expedition, name="expedition"),
|
2009-03-14 08:38:55 +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"),
|
2009-03-16 19:27:52 +00:00
|
|
|
url(r'^logbookentry/(?P<date>.*)/(?P<slug>.*)/?$', 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"),
|
2009-03-30 07:12:50 +01:00
|
|
|
url(r'^cave/(?P<cave_id>[^/]+)/?$', views_caves.cave, name="cave"),
|
2009-05-03 06:56:03 +01:00
|
|
|
#url(r'^cavehref/(.+)$', views_caves.cave, name="cave"),url(r'cave'),
|
2009-03-12 14:22:21 +00:00
|
|
|
|
2009-01-29 23:40:56 +00:00
|
|
|
url(r'^jgtfile/(.*)$', view_surveys.jgtfile, name="jgtfile"),
|
|
|
|
url(r'^jgtuploadfile$', view_surveys.jgtuploadfile, name="jgtuploadfile"),
|
2009-05-08 21:16:57 +01:00
|
|
|
|
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-05-03 06:56:03 +01:00
|
|
|
url(r'^cave/(?P<cave_id>[^/]+)/(?P<subcave>[a-zA-Z/]+)/?$', subcave, name="subcave"),
|
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"),
|
2009-03-30 07:12:50 +01:00
|
|
|
|
2009-03-16 08:53:24 +00:00
|
|
|
url(r'^cave/(?P<cave_id>[^/]+)/(?P<year>\d\d\d\d)-(?P<qm_id>\d\d)(?P<grade>[ABCDX]?)?$', views_caves.qm, name="qm"),
|
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-05-03 06:56:03 +01:00
|
|
|
|
2009-05-08 21:16:57 +01:00
|
|
|
url(r'^controlpanel/?$', views_other.controlPanel, name="controlpanel"),
|
2009-05-03 06:56:03 +01:00
|
|
|
|
2008-12-13 23:17:33 +00:00
|
|
|
(r'^admin/doc/?', include('django.contrib.admindocs.urls')),
|
2009-03-16 09:00:09 +00:00
|
|
|
(r'^admin/(.*)', admin.site.root),
|
|
|
|
#url(r'^admin/', include(admin.site.urls),name="admin"),
|
2008-10-26 21:04:06 +00:00
|
|
|
|
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',
|
2009-05-10 08:26:36 +01:00
|
|
|
{'document_root': settings.SURVEY_SCANS, 'show_indexes':True}),
|
2009-01-15 06:22:54 +00:00
|
|
|
|
2009-02-18 06:45:45 +00:00
|
|
|
(r'^photos/(?P<path>.*)$', 'django.views.static.serve',
|
2009-03-14 16:20:51 +00:00
|
|
|
{'document_root': settings.PHOTOS_ROOT, 'show_indexes':True}),
|
2009-03-30 07:12:50 +01:00
|
|
|
|
2009-03-30 08:50:56 +01:00
|
|
|
#url(r'^trip_report/?$',views_other.tripreport,name="trip_report")
|
2008-10-26 21:04:06 +00:00
|
|
|
)
|