diff options
Diffstat (limited to 'app/posts/urls/trip_urls.py')
-rw-r--r-- | app/posts/urls/trip_urls.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/posts/urls/trip_urls.py b/app/posts/urls/trip_urls.py index 91d3c33..7e9c95f 100644 --- a/app/posts/urls/trip_urls.py +++ b/app/posts/urls/trip_urls.py @@ -7,9 +7,19 @@ app_name = "trips" urlpatterns = [ path( + r'<str:slug>', + views.TripDetailView.as_view(), + name="detail" + ), + path( + r'<int:page>/', + views.TripListView.as_view(), + name="list" + ), + path( r'', views.TripListView.as_view(), {'page':1}, - name="trip-list" + name="list" ), ] |