From ddaf8c00278a72561f461f3b8d6664b17027a37f Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 20 Jan 2018 11:02:04 +0100 Subject: [PATCH] Improve the default page finding --- khaganat/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/khaganat/urls.py b/khaganat/urls.py index c4fb89b..15ae96d 100644 --- a/khaganat/urls.py +++ b/khaganat/urls.py @@ -17,12 +17,14 @@ from django.views.generic.base import RedirectView from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.urls import include,path +from pages.views import index urlpatterns = [ - path('', RedirectView.as_view(url='/page', permanent=False)), + path('', index), path('admin/', admin.site.urls), ] urlpatterns += i18n_patterns( + path('', index), path('page/', include('pages.urls')), )