92621144b34e52d8b3cab7fb58064a4c955dc590
[wolnelektury.git] / apps / libraries / urls.py
1 from django.conf.urls.defaults import patterns, url
2 from django.http import HttpResponseRedirect
3
4
5 urlpatterns = patterns('libraries.views',
6     url(r'^$', 'main_view', name='libraries_main_view'),
7     url(r'^/$', lambda x: HttpResponseRedirect(x.path[:-1])),
8     url(r'^/(?P<slug>[a-zA-Z0-9_-]+)$', 'library_view', name='library_view'),
9 )