urls.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "game-system/",
  32. views.GameSystemList.as_view(),
  33. name="gamesystem_list",
  34. ),
  35. path(
  36. "collection/",
  37. views.GameCollectionList.as_view(),
  38. name="gamecollection_list",
  39. ),
  40. path(
  41. "<str:slug>/",
  42. views.GameDetail.as_view(),
  43. name="game_detail",
  44. ),
  45. path(
  46. "<str:slug>/play/",
  47. views.GamePlayDetail.as_view(),
  48. name="game_play_detail",
  49. ),
  50. path(
  51. "system/<str:slug>/",
  52. views.GameSystemDetail.as_view(),
  53. name="game_system_detail",
  54. ),
  55. path(
  56. "genre/<str:slug>/",
  57. views.GenreDetail.as_view(),
  58. name="genre_detail",
  59. ),
  60. path(
  61. "publisher/<str:slug>/",
  62. views.PublisherDetail.as_view(),
  63. name="publisher_detail",
  64. ),
  65. path(
  66. "developer/<str:slug>/",
  67. views.DeveloperDetail.as_view(),
  68. name="developer_detail",
  69. ),
  70. path(
  71. "collection/<str:slug>/",
  72. views.GameCollectionDetail.as_view(),
  73. name="gamecollection_detail",
  74. ),
  75. ]