Skip to content

Commit

Permalink
Run tests against Django 4.x (#361)
Browse files Browse the repository at this point in the history
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 <60774943+carolabadeer@users.noreply.github.com>
  • Loading branch information
michael-k and carolabadeer authored Oct 31, 2022
1 parent 7ec8c59 commit 6e30483
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/ext/django/app/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sqlite3

from django.http import HttpResponse
from django.conf.urls import url
from django.urls import path
from django.views.generic import TemplateView


Expand Down Expand Up @@ -32,9 +32,9 @@ def call_db(request):


urlpatterns = [
url(r'^200ok/$', ok, name='200ok'),
url(r'^500fault/$', fault, name='500fault'),
url(r'^call_db/$', call_db, name='call_db'),
url(r'^template/$', IndexView.as_view(), name='template'),
url(r'^template_block/$', TemplateBlockView.as_view(), name='template_block'),
path('200ok/', ok, name='200ok'),
path('500fault/', fault, name='500fault'),
path('call_db/', call_db, name='call_db'),
path('template/', IndexView.as_view(), name='template'),
path('template_block/', TemplateBlockView.as_view(), name='template_block'),
]
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ envlist =
; Django3 is only for python 3.6+
py{36,37,38,39}-ext-django-3

; Django4 is only for python 3.8+
py{38,39}-ext-django-4

py{27,34,35,36,37,38,39}-ext-flask

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

ext-django-2: Django >=2.0,<3.0
ext-django-3: Django >=3.0,<4.0
ext-django-4: Django >=4.0,<5.0
ext-django: django-fake-model

ext-pynamodb: pynamodb >= 3.3.1
Expand Down

0 comments on commit 6e30483

Please sign in to comment.