Improve the default page finding
This commit is contained in:
parent
6b0dda0f2f
commit
ddaf8c0027
1 changed files with 3 additions and 1 deletions
|
@ -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')),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue