Modifisert urls.py slik at den matcher urls.txt
This commit is contained in:
parent
ca3716cc4b
commit
392870af5a
|
@ -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'^bok/(?P<book_identifier>\d+)/$','web.library.views.BookView'),
|
||||||
(r'^book/(?P<book_identifier>\S+)/$','web.library.views.BookRedirect'),
|
(r'^bok/(?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'^kart/(?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