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'),