urls.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. "library/update/",
  17. views.trigger_rom_update,
  18. name="game_library_update",
  19. ),
  20. path(
  21. "library/update/status/",
  22. views.library_update_status,
  23. name="game_library_update_status",
  24. ),
  25. path(
  26. "publisher/",
  27. views.PublisherList.as_view(),
  28. name="publisher_list",
  29. ),
  30. path(
  31. "genre/",
  32. views.GenreList.as_view(),
  33. name="genre_list",
  34. ),
  35. path(
  36. "developer/",
  37. views.DeveloperList.as_view(),
  38. name="developer_list",
  39. ),
  40. path(
  41. "game-system/",
  42. views.GameSystemList.as_view(),
  43. name="gamesystem_list",
  44. ),
  45. path(
  46. "collection/",
  47. views.GameCollectionList.as_view(),
  48. name="gamecollection_list",
  49. ),
  50. path(
  51. "<str:slug>-<str:region>/",
  52. views.GameDetail.as_view(),
  53. name="game_detail",
  54. ),
  55. path(
  56. "<str:slug>/play/",
  57. views.GamePlayDetail.as_view(),
  58. name="game_play_detail",
  59. ),
  60. path(
  61. "system/<str:slug>/",
  62. views.GameSystemDetail.as_view(),
  63. name="game_system_detail",
  64. ),
  65. path(
  66. "genre/<str:slug>/",
  67. views.GenreDetail.as_view(),
  68. name="genre_detail",
  69. ),
  70. path(
  71. "publisher/<str:slug>/",
  72. views.PublisherDetail.as_view(),
  73. name="publisher_detail",
  74. ),
  75. path(
  76. "developer/<str:slug>/",
  77. views.DeveloperDetail.as_view(),
  78. name="developer_detail",
  79. ),
  80. path(
  81. "collection/<str:slug>/",
  82. views.GameCollectionDetail.as_view(),
  83. name="gamecollection_detail",
  84. ),
  85. ]