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
|
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<slug>[-\w]+)$',
view=views.TopicListView.as_view(),
name="list_topics"
),
url(
regex=r'books/(?P<slug>[-\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<slug>[-\w]+).txt$',
view=views.EntryDetailViewTXT.as_view(),
name="detail-txt"
),
url(
regex=r'(?P<slug>[-\w]+).amp$',
view=views.EntryDetailViewAMP.as_view(),
name="detail-amp"
),
url(
regex=r'(?P<slug>[-\w]+)$',
view=views.EntryDetailView.as_view(),
name="detail"
),
url(
regex=r'^$',
view=views.SrcListView.as_view(),
name="list",
),
]
|