diff options
Diffstat (limited to 'app/posts/urls/film_urls.py')
-rw-r--r-- | app/posts/urls/film_urls.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/posts/urls/film_urls.py b/app/posts/urls/film_urls.py new file mode 100644 index 0000000..872d3f4 --- /dev/null +++ b/app/posts/urls/film_urls.py @@ -0,0 +1,24 @@ +from django.urls import path, re_path + +from ..views import film_views as views + +app_name = "film" + +urlpatterns = [ + path( + r'<str:slug>', + views.FilmDetailView.as_view(), + name="detail" + ), + path( + r'<int:page>/', + views.FilmListView.as_view(), + name="list" + ), + path( + r'', + views.FilmListView.as_view(), + {'page':1}, + name="list" + ), +] |