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:
|
# to INSTALLED_APPS to enable admin documentation:
|
||||||
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||||
(r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root' : settings.MEDIA_ROOT}),
|
(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>\d+)/$','web.library.views.BookView'),
|
||||||
(r'^book/(?P<book_identifier>\S+)$','web.library.views.BookRedirect'),
|
(r'^book/(?P<book_identifier>\S+)/$','web.library.views.BookRedirect'),
|
||||||
(r'^person/(?P<person_identifier>\S+)$','web.library.views.PersonView'),
|
(r'^person/(?P<person_identifier>\S+)/$','web.library.views.PersonView'),
|
||||||
(r'^map/(?P<shelf_identifier>\S+)$', 'web.library.views.MapView'),
|
(r'^map/(?P<shelf_identifier>\S+)/$', 'web.library.views.MapView'),
|
||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
(r'^admin/', include(admin.site.urls)),
|
(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
)
|
||||||
|
|
Reference in New Issue