diff options
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/urls.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/app/src/urls.py b/app/src/urls.py index 217912c..37e4774 100644 --- a/app/src/urls.py +++ b/app/src/urls.py @@ -5,8 +5,8 @@ from . import views urlpatterns = [ url( - regex=r'^feed.xml', - view=views.SrcRSSFeedView(), + r'^feed.xml', + views.SrcRSSFeedView(), name="feed" ), url( @@ -15,38 +15,38 @@ urlpatterns = [ name="paypal-ipn" ), url( - regex=r'topic/(?P<slug>[-\w]+)$', - view=views.TopicListView.as_view(), + r'topic/(?P<slug>[-\w]+)$', + views.TopicListView.as_view(), name="list_topics" ), url( - regex=r'books/(?P<slug>[-\w]+)$', - view=views.BookDetailView.as_view(), + r'books/(?P<slug>[-\w]+)$', + views.BookDetailView.as_view(), name='detail_book' ), url( - regex=r'books/$', - view=views.BookListView.as_view(), + r'books/$', + views.BookListView.as_view(), name='list_books' ), url( - regex=r'(?P<slug>[-\w]+).txt$', - view=views.EntryDetailViewTXT.as_view(), + r'(?P<slug>[-\w]+).txt$', + views.EntryDetailViewTXT.as_view(), name="detail-txt" ), url( - regex=r'(?P<slug>[-\w]+).amp$', - view=views.EntryDetailViewAMP.as_view(), + r'(?P<slug>[-\w]+).amp$', + views.EntryDetailViewAMP.as_view(), name="detail-amp" ), url( - regex=r'(?P<slug>[-\w]+)$', - view=views.EntryDetailView.as_view(), + r'(?P<slug>[-\w]+)$', + views.EntryDetailView.as_view(), name="detail" ), url( - regex=r'^$', - view=views.SrcListView.as_view(), + r'^$', + views.SrcListView.as_view(), name="list", ), ] |