2008-10-26 21:04:06 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
from expo.views import *
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
# Example:
|
|
|
|
(r'^troggle/cave/$', caveindex),
|
|
|
|
(r'^troggle/cave/(?P<cave_id>[^/]+)/$', cave),
|
|
|
|
(r'^troggle/cave/(?P<cave_id>[^/]+)/(?P<ent_letter>[^/]?)$', ent),
|
2008-10-27 00:36:06 +00:00
|
|
|
|
2008-10-26 21:04:06 +00:00
|
|
|
(r'^troggle/survex/(?P<survex_file>.*)\.index$', index),
|
|
|
|
(r'^troggle/survex/(?P<survex_file>.*)\.svx$', svx),
|
|
|
|
(r'^troggle/survex/(?P<survex_file>.*)\.3d$', threed),
|
|
|
|
(r'^troggle/survex/(?P<survex_file>.*)\.log$', log),
|
|
|
|
(r'^troggle/survex/(?P<survex_file>.*)\.err$', err),
|
2008-10-27 00:36:06 +00:00
|
|
|
|
|
|
|
(r'^person/$', personindex),
|
|
|
|
(r'^person/(.*)$', person),
|
|
|
|
|
2008-10-26 21:04:06 +00:00
|
|
|
(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/'}),
|
|
|
|
|
|
|
|
)
|