Handle urls the old way

This commit is contained in:
Marcel Plch 2022-03-04 17:15:05 +01:00 committed by Marcel Plch
parent 2752900394
commit e9bd449897
Signed by: dormouse
GPG key ID: 2CA77596BC4BDFFE

View file

@ -14,11 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.conf.urls import url
from base_app.views import IndexView, LoremView, CVView, UkraineView from base_app.views import IndexView
urlpatterns = [ urlpatterns = [
path('', IndexView.as_view()), url(r'^$', IndexView.as_view()),
path('curriculum-vitae/', CVView.as_view()), url(r'^curriculum-vitae/$', CVView.as_view()),
path('ukraine/', UkraineView.as_view()), url(r'^ukraine/$', UkraineView.as_view()),
] ]