From fb0c734f60b393cc8b66a0a9e07da2de06f1a409 Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 7 Jan 2020 13:57:02 +0100 Subject: [PATCH] Redirect to dashboard as root index (redirect). --- userpanel/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userpanel/urls.py b/userpanel/urls.py index 1f0caec..84d4ec9 100644 --- a/userpanel/urls.py +++ b/userpanel/urls.py @@ -18,11 +18,13 @@ from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path +from django.views.generic.base import RedirectView import musician urlpatterns = [ path('', include('musician.urls')), + path('', RedirectView.as_view(pattern_name='musician:dashboard', permanent=False), name='root_index') ] DEVELOPMENT = config('DEVELOPMENT', default=False, cast=bool)