2010-09-17 17:14:10 +02:00
|
|
|
from django.conf.urls.defaults import *
|
2011-03-05 20:33:11 +01:00
|
|
|
from django.conf import settings
|
2010-09-17 17:14:10 +02:00
|
|
|
# Uncomment the next two lines to enable the admin:
|
2010-09-18 17:20:50 +02:00
|
|
|
from django.contrib import admin
|
|
|
|
admin.autodiscover()
|
2010-09-17 17:14:10 +02:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
|
|
# Example:
|
|
|
|
# (r'^web/', include('web.foo.urls')),
|
|
|
|
|
|
|
|
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
|
|
|
|
# to INSTALLED_APPS to enable admin documentation:
|
|
|
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
2011-03-05 20:33:11 +01:00
|
|
|
(r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root' : settings.MEDIA_ROOT}),
|
2011-03-06 13:17:08 +01:00
|
|
|
(r'^bok/(?P<book_identifier>\d+)/$','web.library.views.BookView'),
|
|
|
|
(r'^bok/(?P<book_identifier>\S+)/$','web.library.views.BookRedirect'),
|
2011-03-06 12:36:33 +01:00
|
|
|
(r'^person/(?P<person_identifier>\S+)/$','web.library.views.PersonView'),
|
2011-03-06 13:17:08 +01:00
|
|
|
(r'^kart/(?P<shelf_identifier>\S+)/$', 'web.library.views.MapView'),
|
2010-09-17 17:14:10 +02:00
|
|
|
# Uncomment the next line to enable the admin:
|
2010-09-18 17:20:50 +02:00
|
|
|
(r'^admin/', include(admin.site.urls)),
|
2010-09-17 17:14:10 +02:00
|
|
|
)
|