This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
worblehat-old/python/web/urls.py

29 lines
1.3 KiB
Python
Raw Normal View History

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}),
(r'^bok/$','web.library.views.BookIndex'),
(r'^bok/(?P<book_identifier>\d+)/$','web.library.views.BookView'),
(r'^bok/(?P<book_identifier>\S+)/$','web.library.views.BookRedirect'),
(r'^person/(?P<person_identifier>\S+)/$','web.library.views.PersonView'),
(r'^person/$','web.library.views.PersonIndex'),
(r'^kart/$','web.library.views.MapIndex'),
(r'^kart/(?P<shelf_identifier>\S+)/$','web.library.views.MapView'),
(r'^kategori/$','web.library.views.CategoryIndex'),
(r'^kategori/(?P<category_identifier>\S+)/$','web.library.views.CategoryView'),
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)),
(r'^let/','web.library.views.SearchView'),
(r'^$','web.library.views.IndexView'),
2010-09-17 17:14:10 +02:00
)