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

Modifisert urls.py slik at den matcher urls.txt

This commit is contained in:
Øyvind Almelid 2011-03-06 12:17:08 +00:00
parent ca3716cc4b
commit 392870af5a
1 changed files with 3 additions and 3 deletions

View File

@ -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)),
) )