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
|
from django.urls import path, re_path, include
from django.views.generic.base import RedirectView
from ..views import guide_views as views
app_name = "guides"
urlpatterns = [
path(
r'',
views.GuideListView.as_view(),
{'page':1},
name="guide-base"
),
path(r'field-test/', include('posts.urls.review_urls', namespace='reviews')),
re_path(r'^field-test/$', RedirectView.as_view(url='/field-tests/')),
#path(r'field-tests/', include('posts.urls', namespace='review-list')),
#path(r'review/', include('posts.review_urls')),
re_path(r'^review/$', RedirectView.as_view(url='/guides/')),
path(
r'<str:topic>/',
views.GuideTopicListView.as_view(),
{'page':1},
name="guides-by-topic"
),
#path(
# r'<str:slug>',
# views.EntryDetailView.as_view(),
# name="detail"
#),
#re_path(
# r'<int:page>/',
# views.EntryList.as_view(),
# name="list"
#),
]
|