image listings / boxes work but need polishing. started coding the viewer.
[wolnelektury.git] / apps / lesmianator / urls.py
1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 #
5 from django.conf.urls.defaults import *
6 from catalogue.models import Book
7
8 urlpatterns = patterns('lesmianator.views',
9     url(r'^$', 'main_page', name='lesmianator'),
10     url(r'^wiersz/$', 'new_poem', name='new_poem'),
11     url(r'^lektura/(?P<slug>[a-z0-9-]+)/$', 'poem_from_book', name='poem_from_book'),
12     url(r'^polka/(?P<shelf>[a-zA-Z0-9-]+)/$', 'poem_from_set', name='poem_from_set'),
13     url(r'^wiersz/(?P<poem>[a-zA-Z0-9-]+)/$', 'get_poem', name='get_poem'),
14 )
15