|
13 | 13 | 1. Import the include() function: from django.conf.urls import url, include
|
14 | 14 | 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
15 | 15 | """
|
16 |
| -from django.conf.urls import url |
| 16 | +from django.urls import re_path |
17 | 17 | from django.contrib import admin
|
18 | 18 |
|
19 | 19 | from .views import IndexView, AuthView, DynamicShareView, SourceConstraintsView
|
20 | 20 |
|
21 | 21 | urlpatterns = [
|
22 |
| - url(r"^$", IndexView.as_view(), name="index"), |
23 |
| - url(r"^yoti/auth/$", AuthView.as_view(), name="auth"), |
24 |
| - url(r"^admin/", admin.site.urls), |
25 |
| - url(r"^dynamic-share/$", DynamicShareView.as_view(), name="dynamic-share"), |
26 |
| - url( |
| 22 | + re_path(r"^$", IndexView.as_view(), name="index"), |
| 23 | + re_path(r"^yoti/auth/$", AuthView.as_view(), name="auth"), |
| 24 | + re_path(r"^admin/", admin.site.urls), |
| 25 | + re_path(r"^dynamic-share/$", DynamicShareView.as_view(), name="dynamic-share"), |
| 26 | + re_path( |
27 | 27 | r"^source-constraint/$",
|
28 | 28 | SourceConstraintsView.as_view(),
|
29 | 29 | name="source-constraints",
|
|
0 commit comments