- url(r'^szukaj/$', RedirectView.as_view(
- url='/szukaj/', query_string=True, permanent=True)),
-
- url(r'^$', views.catalogue, name='catalogue'),
-
- url(r'^autor/$', views.tag_catalogue, {'category': 'author'}, name='author_catalogue'),
- url(r'^epoka/$', views.tag_catalogue, {'category': 'epoch'}, name='epoch_catalogue'),
- url(r'^gatunek/$', views.tag_catalogue, {'category': 'genre'}, name='genre_catalogue'),
- url(r'^rodzaj/$', views.tag_catalogue, {'category': 'kind'}, name='kind_catalogue'),
- url(r'^motyw/$', views.tag_catalogue, {'category': 'theme'}, name='theme_catalogue'),
-
- url(r'^galeria/$', views.gallery, name='gallery'),
- url(r'^kolekcje/$', views.collections, name='catalogue_collections'),
-
- url(r'^lektury/$', views.literature, name='book_list'),
- url(r'^lektury/(?P<slug>[a-zA-Z0-9-]+)/$', views.collection, name='collection'),
- url(r'^audiobooki/$', views.audiobooks, name='audiobook_list'),
- url(r'^daisy/$', views.daisy_list, name='daisy_list'),
- 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],