Skip to content

Commit fa36059

Browse files
paradox-lab2auvipy
authored andcommitted
Update to Django 4.2.21 and DRF 3.16.0
1 parent 6d2f7ba commit fa36059

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
djangorestframework==3.11.2
2-
Django==3.1.14
3-
Pygments==2.7.4
1+
djangorestframework==3.16.0
2+
Django==4.2.21
3+
Pygments==2.19.1
44
Markdown==3.2.1
55
coreapi==2.3.3
66
psycopg2-binary==2.8.4
77
dj-database-url==0.5.0
88
gunicorn==20.0.4
99
whitenoise==5.0.1
10-
PyYAML==5.4
10+
PyYAML==6.0.2

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.6.3
1+
python-3.10.17

snippets/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.conf.urls import include, url
1+
from django.urls import include, re_path
22
from rest_framework.routers import DefaultRouter
33

44
from snippets import views
@@ -11,5 +11,5 @@
1111
# The API URLs are now determined automatically by the router.
1212
# Additionally, we include the login URLs for the browsable API.
1313
urlpatterns = [
14-
url(r'^', include(router.urls))
14+
re_path(r'^', include(router.urls))
1515
]

tutorial/urls.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.conf.urls import include, url
1+
from django.urls import include, re_path
22
from rest_framework.schemas import get_schema_view
33
from rest_framework.documentation import include_docs_urls
44

@@ -7,8 +7,8 @@
77
schema_view = get_schema_view(title=API_TITLE)
88

99
urlpatterns = [
10-
url(r'^', include('snippets.urls')),
11-
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
12-
url(r'^schema/$', schema_view),
13-
url(r'^docs/', include_docs_urls(title=API_TITLE, description=API_DESCRIPTION))
10+
re_path(r'^', include('snippets.urls')),
11+
re_path(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
12+
re_path(r'^schema/$', schema_view),
13+
re_path(r'^docs/', include_docs_urls(title=API_TITLE, description=API_DESCRIPTION))
1414
]

0 commit comments

Comments
 (0)