Drop Django 3.1 support.

This commit is contained in:
Hasan Ramezani 2021-12-13 20:53:51 +01:00 committed by Ken Cochrane
parent 006ecf1dff
commit 7c544d1cf8
5 changed files with 5 additions and 5 deletions

View file

@ -2,6 +2,8 @@
Changes
=======
- Drop Django 3.1 support.
0.9.1
-----

View file

@ -49,7 +49,7 @@ TEMPLATES = [
},
},
]
if django.VERSION > (3, 1):
if django.VERSION >= (3, 2):
TEMPLATES[0]["OPTIONS"]["context_processors"].append("django.template.context_processors.request")
SECRET_KEY = os.environ.get("SECRET_KEY", "too-secret-for-test")

View file

@ -45,7 +45,7 @@ TEMPLATES = [
},
},
]
if django.VERSION > (3, 1):
if django.VERSION >= (3, 2):
TEMPLATES[0]["OPTIONS"]["context_processors"].append("django.template.context_processors.request")
SECRET_KEY = os.environ.get("SECRET_KEY", "too-secret-for-test")

View file

@ -32,7 +32,6 @@ setup(
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",

View file

@ -1,7 +1,7 @@
[tox]
envlist =
# list of supported Django/Python versions:
py{36,37,38,39,py3}-dj{22,31,32}
py{36,37,38,39,py3}-dj{22,32}
py{38,39}-djmain
py38-{lint,docs}
@ -17,7 +17,6 @@ python =
deps =
-rrequirements.txt
dj22: django>=2.2,<2.3
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = True