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

21 lines
883 B
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'^book/(?P<book_identifier>\d+)$','web.library.views.BookView'),
(r'^book/(?P<book_identifier>\S+)$','web.library.views.BookRedirect'),
(r'^person/(?P<person_identifier>\S+)$','web.library.views.PersonView'),
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
)