Skip to content

Commit 6e30483

Browse files
Run tests against Django 4.x (#361)
Django 4.0 was released in December 2021[1] and Django 4.1 in August 2022[2]. Both are non-LTS releases. The next LTS will be 4.2 (the last release in the 4.x series) which is expected in April 2023. [1] https://www.djangoproject.com/weblog/2021/dec/07/django-40-released/ [2] https://www.djangoproject.com/weblog/2022/aug/03/django-41-released/ Co-authored-by: Carol Abadeer <[email protected]>
1 parent 7ec8c59 commit 6e30483

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

tests/ext/django/app/views.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sqlite3
22

33
from django.http import HttpResponse
4-
from django.conf.urls import url
4+
from django.urls import path
55
from django.views.generic import TemplateView
66

77

@@ -32,9 +32,9 @@ def call_db(request):
3232

3333

3434
urlpatterns = [
35-
url(r'^200ok/$', ok, name='200ok'),
36-
url(r'^500fault/$', fault, name='500fault'),
37-
url(r'^call_db/$', call_db, name='call_db'),
38-
url(r'^template/$', IndexView.as_view(), name='template'),
39-
url(r'^template_block/$', TemplateBlockView.as_view(), name='template_block'),
35+
path('200ok/', ok, name='200ok'),
36+
path('500fault/', fault, name='500fault'),
37+
path('call_db/', call_db, name='call_db'),
38+
path('template/', IndexView.as_view(), name='template'),
39+
path('template_block/', TemplateBlockView.as_view(), name='template_block'),
4040
]

tox.ini

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ envlist =
1919
; Django3 is only for python 3.6+
2020
py{36,37,38,39}-ext-django-3
2121

22+
; Django4 is only for python 3.8+
23+
py{38,39}-ext-django-4
24+
2225
py{27,34,35,36,37,38,39}-ext-flask
2326

2427
py{27,34,35,36,37,38,39}-ext-flask_sqlalchemy
@@ -98,6 +101,7 @@ deps =
98101

99102
ext-django-2: Django >=2.0,<3.0
100103
ext-django-3: Django >=3.0,<4.0
104+
ext-django-4: Django >=4.0,<5.0
101105
ext-django: django-fake-model
102106

103107
ext-pynamodb: pynamodb >= 3.3.1

0 commit comments

Comments
 (0)