Redirect to dashboard as root index (redirect).

This commit is contained in:
Santiago Lamora 2020-01-07 13:57:02 +01:00
parent f6d13d6b95
commit fb0c734f60

View file

@ -18,11 +18,13 @@ from django.conf import settings
from django.conf.urls.static import static from django.conf.urls.static import static
from django.contrib import admin from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from django.views.generic.base import RedirectView
import musician import musician
urlpatterns = [ urlpatterns = [
path('', include('musician.urls')), path('', include('musician.urls')),
path('', RedirectView.as_view(pattern_name='musician:dashboard', permanent=False), name='root_index')
] ]
DEVELOPMENT = config('DEVELOPMENT', default=False, cast=bool) DEVELOPMENT = config('DEVELOPMENT', default=False, cast=bool)