- 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/$', 'gallery', name='gallery'),
- url(r'^kolekcje/$', 'collections', name='catalogue_collections'),
-
- url(r'^lektury/$', 'literature', name='book_list'),
- url(r'^lektury/(?P<slug>[a-zA-Z0-9-]+)/$', 'collection', name='collection'),
- url(r'^audiobooki/$', 'audiobooks', name='audiobook_list'),
- url(r'^daisy/$', '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.GalleryView.as_view(), name='gallery'),
+ path('kolekcje/', views.collections, name='catalogue_collections'),
+
+ path('lektury/', views.LiteratureView.as_view(), name='book_list'),
+ path('lektury/<slug:slug>/', views.collection, name='collection'),
+ path('audiobooki/', views.AudiobooksView.as_view(), 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],