Browse Source

redirect from / to /accounts/

Gesche 9 months ago
parent
commit
6c1c60ae51
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tibia_website/urls.py

+ 2
- 0
tibia_website/urls.py View File

@@ -15,9 +15,11 @@ Including another URLconf
15 15
 """
16 16
 from django.contrib import admin
17 17
 from django.urls import path, include
18
+from django.views.generic import RedirectView
18 19
 
19 20
 urlpatterns = [
20 21
     path('admin/', admin.site.urls),
22
+    path('', RedirectView.as_view(url='/accounts/')),
21 23
     path('accounts/', include('accounts.urls')),
22 24
     path('auth/', include('django.contrib.auth.urls')),
23 25
 ]

Loading…
Cancel
Save