19 lines
1.2 KiB
Python
19 lines
1.2 KiB
Python
from django.urls import path
|
|
import guild.views as views
|
|
import guild.views.player as player_views
|
|
import guild.views.character as character_views
|
|
import guild.views.adventure as adventure_views
|
|
|
|
urlpatterns = [
|
|
path("", views.HomeView.as_view(), name="home"),
|
|
# path("players/", views.PlayerListView.as_view(), name="player_list"),
|
|
path("players/create/", player_views.CreatePlayerView.as_view(), name="create_player"),
|
|
path("players/<int:pk>/", player_views.PlayerDetailView.as_view(), name="player_detail"),
|
|
path("characters/create/", character_views.CreateCharacterView.as_view(), name="create_character"),
|
|
path("characters/<int:pk>/", character_views.CharacterDetailView.as_view(), name="character_detail"),
|
|
path("adventures/create/", adventure_views.CreateAdventureView.as_view(), name="create_adventure"),
|
|
path("adventures/<int:pk>/", adventure_views.AdventureDetailView.as_view(), name="adventure_detail"),
|
|
path("adventures/<int:pk>/playsession/create/", adventure_views.CreatePlaySessionView.as_view(), name="create_playsession"),
|
|
path("adventures/<int:pk>/playsession/<int:playsession_pk>/", adventure_views.PlaySessionDetailView.as_view(), name="playsession_detail"),
|
|
]
|