expoweb/troggle/urls.py

31 lines
931 B
Python
Raw Normal View History

from django.conf.urls.defaults import *
from expo.views import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
2008-11-08 15:37:12 +00:00
(r'^cave/$', caveindex),
(r'^cave/(?P<cave_id>[^/]+)/$', cave),
(r'^cave/(?P<cave_id>[^/]+)/(?P<ent_letter>[^/]?)$', ent),
2008-10-27 00:36:06 +00:00
2008-11-08 15:37:12 +00:00
(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),
2008-10-27 00:36:06 +00:00
(r'^person/$', personindex),
(r'^person/(.*)$', person),
(r'^logbookentry/(.*)$', logbookentry),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': 'c:/expodjango/troggle/media/'}),
)