Skip to content

Commit 7bffc05

Browse files
committed
Update django
1 parent af033f0 commit 7bffc05

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

examples/yoti_example_django/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django>=3.0.7
1+
django>=4.0.1
22
django-sslserver>=0.22.0
33
python-dotenv>=0.7.1
44
requests>=2.20.0

examples/yoti_example_django/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.8
2+
# This file is autogenerated by pip-compile with python 3.10
33
# To update, run:
44
#
55
# pip-compile --output-file=requirements.txt requirements.in

examples/yoti_example_django/yoti_example/urls.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
1. Import the include() function: from django.conf.urls import url, include
1414
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515
"""
16-
from django.conf.urls import url
16+
from django.urls import re_path
1717
from django.contrib import admin
1818

1919
from .views import IndexView, AuthView, DynamicShareView, SourceConstraintsView
2020

2121
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(
2727
r"^source-constraint/$",
2828
SourceConstraintsView.as_view(),
2929
name="source-constraints",

0 commit comments

Comments
 (0)