mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Drop Django 3.1 support.
This commit is contained in:
parent
006ecf1dff
commit
7c544d1cf8
5 changed files with 5 additions and 5 deletions
|
|
@ -2,6 +2,8 @@
|
|||
Changes
|
||||
=======
|
||||
|
||||
- Drop Django 3.1 support.
|
||||
|
||||
0.9.1
|
||||
-----
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -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",
|
||||
|
|
|
|||
3
tox.ini
3
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue