2023-06-09 20:19:15 +00:00
|
|
|
from django.urls import path
|
|
|
|
import guild.views as views
|
2023-06-10 19:33:06 +00:00
|
|
|
import guild.views.player as player_views
|
|
|
|
import guild.views.character as character_views
|
2023-06-09 20:19:15 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("", views.HomeView.as_view(), name="home"),
|
2023-06-10 19:33:06 +00:00
|
|
|
# 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"),
|
2023-06-09 20:19:15 +00:00
|
|
|
]
|