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