- url(r'^szukaj/$', RedirectView.as_view(
- url='/szukaj/', query_string=True, permanent=True)),
-)
-
-urlpatterns += patterns('catalogue.views',
- url(r'^$', 'catalogue', name='catalogue'),
-
- url(r'^autor/$', 'tag_catalogue', {'category': 'author'}, name='author_catalogue'),
- url(r'^epoka/$', 'tag_catalogue', {'category': 'epoch'}, name='epoch_catalogue'),
- url(r'^gatunek/$', 'tag_catalogue', {'category': 'genre'}, name='genre_catalogue'),
- url(r'^rodzaj/$', 'tag_catalogue', {'category': 'kind'}, name='kind_catalogue'),
- url(r'^motyw/$', 'tag_catalogue', {'category': 'theme'}, name='theme_catalogue'),
-
- url(r'^galeria/$', 'tagged_object_list', {'gallery': True}, name='gallery'),
- url(r'^kolekcje/$', 'collections', name='catalogue_collections'),
-
- url(r'^lektury/$', 'tagged_object_list', name='book_list'),
- url(r'^lektury/(?P<slug>[a-zA-Z0-9-]+)/$', 'collection', name='collection'),
- url(r'^audiobooki/$', 'audiobook_list', name='audiobook_list'),
- url(r'^daisy/$', 'daisy_list', name='daisy_list'),
- url(r'^tags/$', 'tags_starting_with', name='hint'),
- url(r'^jtags/?$', 'json_tags_starting_with', name='jhint'),
- url(r'^nowe/$', ListView.as_view(
- queryset=Book.objects.filter(parent=None).order_by('-created_at'),
+ path('szukaj/', RedirectView.as_view(
+ url='/szukaj/', query_string=True, permanent=True)),
+
+ path('', views.catalogue, name='catalogue'),
+
+ path('autor/', views.tag_catalogue, {'category': 'author'}, name='author_catalogue'),
+ path('epoka/', views.tag_catalogue, {'category': 'epoch'}, name='epoch_catalogue'),
+ path('gatunek/', views.tag_catalogue, {'category': 'genre'}, name='genre_catalogue'),
+ path('rodzaj/', views.tag_catalogue, {'category': 'kind'}, name='kind_catalogue'),
+ path('motyw/', views.tag_catalogue, {'category': 'theme'}, name='theme_catalogue'),
+
+ path('galeria/', views.gallery, name='gallery'),
+ path('kolekcje/', views.collections, name='catalogue_collections'),
+
+ path('lektury/', views.literature, name='book_list'),
+ path('lektury/<slug:slug>/', views.collection, name='collection'),
+ path('audiobooki/', views.audiobooks, name='audiobook_list'),
+ path('daisy/', views.daisy_list, name='daisy_list'),
+ path('jtags/', search.views.hint, {'param': 'q', 'mozhint': True}, name='jhint'),
+ path('nowe/', ListView.as_view(
+ queryset=Book.objects.filter(parent=None, findable=True).order_by('-created_at')[:100],