29 lines
965 B
Python
29 lines
965 B
Python
from django.urls import path, include
|
|
from . import views
|
|
|
|
league_patterns = [
|
|
# path("", views.league_view, name="league" ),
|
|
path("season/", views.season_view, name="seasons"),
|
|
path("movie/", views.movie_view, name="movies"),
|
|
path("team/", views.team_view, name="teams"),
|
|
]
|
|
|
|
season_patterns = [
|
|
path("", views.season_view, name="season"),
|
|
path("scoreboard/", views.scoreboard_view, name="scoreboard"),
|
|
path("team/<str:username>/", views.team_view, name="team"),
|
|
path("team/", views.team_view, name="teams"),
|
|
path("movie/<str:imdb_id>/", views.movie_view, name="movie"),
|
|
path("movie/", views.movie_view, name="movies")
|
|
]
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"league/<slug:league_slug>/season/<slug:season_slug>/",
|
|
include((season_patterns, "boxofficefantasy"), namespace="season")
|
|
),
|
|
path(
|
|
"league/<slug:league_slug>/",
|
|
include((league_patterns, "boxofficefantasy"), namespace="league")
|
|
),
|
|
] |