Improve the default page finding

This commit is contained in:
Rodolphe Breard 2018-01-20 11:02:04 +01:00
parent 6b0dda0f2f
commit ddaf8c0027

View file

@ -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')),
)