Skip to content

Commit cb414ff

Browse files
committed
Update Django demo
1 parent ca91979 commit cb414ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

demo-django/demo/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
from django.conf.urls import url
1+
from django.urls import re_path
22
from django.contrib import admin
33
from .views import attrs, index, metadata
44
admin.autodiscover()
55

66
urlpatterns = [
7-
url(r'^$', index, name='index'),
8-
url(r'^attrs/$', attrs, name='attrs'),
9-
url(r'^metadata/$', metadata, name='metadata'),
7+
re_path(r'^$', index, name='index'),
8+
re_path(r'^attrs/$', attrs, name='attrs'),
9+
re_path(r'^metadata/$', metadata, name='metadata'),
1010
]

demo-django/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Django==1.11.29
1+
Django==4.0.4
22
python3-saml

0 commit comments

Comments
 (0)