summaryrefslogtreecommitdiff
path: root/app/src/urls.py
blob: b8ea1a26b94d9ed7c327618983cde2c5c2df2682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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<slug>[-\w]+)$',
        views.TopicListView.as_view(),
        name="list_topics"
    ),
    url(
        r'books/(?P<slug>[-\w]+)$',
        views.BookDetailView.as_view(),
        name='detail_book'
    ),
    url(
        r'books/$',
        views.BookListView.as_view(),
        name='list_books'
    ),
    url(
        r'(?P<slug>[-\w]+).txt$',
        views.EntryDetailViewTXT.as_view(),
        name="detail-txt"
    ),
    url(
        r'(?P<slug>[-\w]+).amp$',
        views.EntryDetailViewAMP.as_view(),
        name="detail-amp"
    ),
    url(
        r'(?P<slug>[-\w]+)$',
        views.EntryDetailView.as_view(),
        name="detail"
    ),
    url(
        r'^$',
        views.SrcListView.as_view(),
        name="list",
    ),
]