forked from realpython/materials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
30 lines (29 loc) · 860 Bytes
/
urls.py
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
from django.urls import path
from . import views
urlpatterns = [
path("all", views.AllKeywordsView.as_view()),
path("terms", views.KeywordListView.as_view(), name="terms"),
path("terms/<int:page>", views.listing, name="terms-by-page"),
path("terms.json", views.listing_api, name="terms-api"),
# Faux Pagination Examples
path(
"faux",
views.AllKeywordsView.as_view(
template_name="terms/faux_pagination.html"
),
),
path(
"load_more",
views.AllKeywordsView.as_view(template_name="terms/load_more.html"),
),
path(
"infinite_scrolling",
views.AllKeywordsView.as_view(
template_name="terms/infinite_scrolling.html"
),
),
path(
"search",
views.AllKeywordsView.as_view(template_name="terms/search.html"),
),
]