summaryrefslogtreecommitdiff
path: root/app/unused_apps/src/urls.py
blob: 0ac68978f63307936ef9ae153bd73a9fd8b29b72 (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
from django.urls import path, re_path

from . import views

app_name = "src"

urlpatterns = [
    path(
        r'feed.xml',
        views.SrcRSSFeedView(),
        name="feed"
    ),
    path(
        r'topic/<str:slug>',
        views.TopicListView.as_view(),
        name="list_topics"
    ),
    path(
        r'books/<str:slug>',
        views.BookDetailView.as_view(),
        name='detail_book'
    ),
    path(
        r'books/',
        views.BookListView.as_view(),
        name='list_books'
    ),
    path(
        r'<str:slug>.txt',
        views.EntryDetailViewTXT.as_view(),
        name="detail-txt"
    ),
    path(
        r'<str:slug>',
        views.EntryDetailView.as_view(),
        name="detail"
    ),
    re_path(
        r'<int:page>',
        views.SrcListView.as_view(),
        name="list"
    ),
    path(
        r'',
        views.SrcListView.as_view(),
        {'page':1}, 
        name="list"
    ),
]