urls.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. from django.urls import path
  2. import games.views as views
  3. app_name = "games"
  4. urlpatterns = [
  5. path(
  6. "",
  7. views.RecentGameList.as_view(),
  8. name="game_list",
  9. ),
  10. path(
  11. "library/",
  12. views.LibraryGameList.as_view(),
  13. name="game_library_list",
  14. ),
  15. path(
  16. "publisher/",
  17. views.PublisherList.as_view(),
  18. name="publisher_list",
  19. ),
  20. path(
  21. "genre/",
  22. views.GenreList.as_view(),
  23. name="genre_list",
  24. ),
  25. path(
  26. "developer/",
  27. views.DeveloperList.as_view(),
  28. name="developer_list",
  29. ),
  30. path(
  31. "<str:slug>/",
  32. views.GameDetail.as_view(),
  33. name="game_detail",
  34. ),
  35. path(
  36. "<str:slug>/play/",
  37. views.GamePlayDetail.as_view(),
  38. name="game_play_detail",
  39. ),
  40. path(
  41. "system/<str:slug>/",
  42. views.GameSystemDetail.as_view(),
  43. name="game_system_detail",
  44. ),
  45. path(
  46. "genre/<str:slug>/",
  47. views.GenreDetail.as_view(),
  48. name="genre_detail",
  49. ),
  50. path(
  51. "publisher/<str:slug>/",
  52. views.PublisherDetail.as_view(),
  53. name="publisher_detail",
  54. ),
  55. path(
  56. "developer/<str:slug>/",
  57. views.DeveloperDetail.as_view(),
  58. name="developer_detail",
  59. ),
  60. ]