Advertisement
urasayanoglu

urls.py

Dec 23rd, 2022
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.14 KB | Source Code | 0 0
  1. """Defines URL patterns for board_game_club_apps."""
  2.  
  3. from django.urls import path
  4. from . import views
  5.  
  6. app_name = 'board_game_club_apps'
  7. urlpatterns = [
  8.     # Home Page
  9.     path('', views.index, name='index'),
  10.     # Page that shows all the games
  11.     path('games', views.games, name='games'),
  12.     # Page that shows all loanable games
  13.     path('loanable_games/', views.loanable_games, name='loanable_games'),
  14.     # Page with about info of a single game
  15.     path('games/<int:game_id>/', views.game, name='game'),
  16.     # Page for editing a board game
  17.     path('edit_game/<int:game_id>/', views.edit_game, name="edit_game"),
  18.     # Page with about info of a loanable game
  19.     path('loanable_games/<int:game_id>/', views.loanable_game, name='loanable_game'),
  20.     # Page for adding a new game
  21.     path('new_game/', views.new_game, name='new_game'),
  22.     # Page for loaning a new game
  23.     path('new_loan/', views.new_loan, name='new_loan'),
  24.     # Page that shows current loans of a user
  25.     path('my_loans', views.my_loans, name='my_loans'),
  26.     # Page that shows after a loan is returned
  27.     path('return_loan', views.return_loan, name="return_loan"),
  28. ]
Tags: django
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement