gikk tilbake til djangos frontslash-urlformat
This commit is contained in:
parent
77490d2173
commit
2d697167c2
|
@ -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)),
|
||||
)
|
||||
|
|
Reference in New Issue