From e9bd44989749fc36ddec9a1e6facf21bb068c53b Mon Sep 17 00:00:00 2001 From: Marcel Plch Date: Fri, 4 Mar 2022 17:15:05 +0100 Subject: [PATCH] Handle urls the old way --- plchweb/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plchweb/urls.py b/plchweb/urls.py index 808d1dc..c92222e 100644 --- a/plchweb/urls.py +++ b/plchweb/urls.py @@ -14,11 +14,11 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path -from base_app.views import IndexView, LoremView, CVView, UkraineView +from django.conf.urls import url +from base_app.views import IndexView urlpatterns = [ - path('', IndexView.as_view()), - path('curriculum-vitae/', CVView.as_view()), - path('ukraine/', UkraineView.as_view()), + url(r'^$', IndexView.as_view()), + url(r'^curriculum-vitae/$', CVView.as_view()), + url(r'^ukraine/$', UkraineView.as_view()), ]