from django.conf.urls import url, include from . import views urlpatterns = [ url( regex=r'^feed.xml', view=views.SrcRSSFeedView(), name="feed" ), url( r'^something/paypal/', include('paypal.standard.ipn.urls'), name="paypal-ipn" ), url( regex=r'topic/(?P[-\w]+)$', view=views.TopicListView.as_view(), name="list_topics" ), url( regex=r'books/(?P[-\w]+)$', view=views.BookDetailView.as_view(), name='detail_book' ), url( regex=r'books/$', view=views.BookListView.as_view(), name='list_books' ), url( regex=r'(?P[-\w]+).txt$', view=views.EntryDetailViewTXT.as_view(), name="detail-txt" ), url( regex=r'(?P[-\w]+).amp$', view=views.EntryDetailViewAMP.as_view(), name="detail-amp" ), url( regex=r'(?P[-\w]+)$', view=views.EntryDetailView.as_view(), name="detail" ), url( regex=r'^$', view=views.SrcListView.as_view(), name="list", ), ]