Redirect to dashboard as root index (redirect).
This commit is contained in:
parent
f6d13d6b95
commit
fb0c734f60
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue