Handle urls the old way
This commit is contained in:
parent
2752900394
commit
e9bd449897
1 changed files with 5 additions and 5 deletions
|
@ -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()),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue