redirect from / to /accounts/

This commit is contained in:
Gesche 2019-02-10 14:17:56 +01:00
parent 2a2b841cc0
commit 6c1c60ae51
1 changed files with 2 additions and 0 deletions

View File

@ -15,9 +15,11 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path, include
from django.views.generic import RedirectView
urlpatterns = [
path('admin/', admin.site.urls),
path('', RedirectView.as_view(url='/accounts/')),
path('accounts/', include('accounts.urls')),
path('auth/', include('django.contrib.auth.urls')),
]