Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0

gikk tilbake til djangos frontslash-urlformat

This commit is contained in:
Øyvind Almelid 2011-03-06 11:36:33 +00:00
parent 77490d2173
commit 2d697167c2
1 changed files with 4 additions and 4 deletions

View File

@ -12,10 +12,10 @@ urlpatterns = patterns('',
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
(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'),
(r'^map/(?P<shelf_identifier>\S+)$', 'web.library.views.MapView'),
(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'),
(r'^map/(?P<shelf_identifier>\S+)/$', 'web.library.views.MapView'),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)