11 lines
247 B
Python
11 lines
247 B
Python
from django.urls import path
|
|
|
|
from .views import PlayerDetailView, PlayerSearchView
|
|
|
|
app_name = "players"
|
|
|
|
urlpatterns = [
|
|
path("", PlayerSearchView.as_view(), name="index"),
|
|
path("<int:pk>/", PlayerDetailView.as_view(), name="detail"),
|
|
]
|