From 216c4d9419e5d7843bbb872d277f1e8b2d108743 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Thu, 25 Jan 2024 13:36:10 +0100 Subject: [PATCH] Add redirect URL for musician index --- orchestra/contrib/musician/urls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orchestra/contrib/musician/urls.py b/orchestra/contrib/musician/urls.py index 1305fd9c..9e5190f8 100644 --- a/orchestra/contrib/musician/urls.py +++ b/orchestra/contrib/musician/urls.py @@ -5,12 +5,15 @@ URL routes definition. Describe the paths where the views are accesible. """ from django.urls import path +from django.views.generic import RedirectView from . import views app_name = 'musician' urlpatterns = [ + path('', RedirectView.as_view(pattern_name='musician:dashboard', permanent=False), name='index'), + path('auth/login/', views.LoginView.as_view(), name='login'), path('auth/logout/', views.LogoutView.as_view(), name='logout'), path('dashboard/', views.DashboardView.as_view(), name='dashboard'),