fe0fd6b96244e80855f3ac57a7004b9ccad0834b
[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_-]+)$', 'catalog_view', name='libraries_catalog_view'),
9 )