Skip to content

Commit 50f02a5

Browse files
author
Nikolaus Schlemm
committed
added django 2.2, dropped django 2.0 and python 3.4
keeping in sync with https://www.djangoproject.com/download/#supported-versions
1 parent a04933e commit 50f02a5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: python
22
python:
33
- '2.7'
4-
- '3.4'
54
- '3.5'
65
- '3.6'
76
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs

dbtemplates/test_settings.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@
1818
INSTALLED_APPS = [
1919
'django.contrib.contenttypes',
2020
'django.contrib.sites',
21+
'django.contrib.sessions',
22+
'django.contrib.messages',
2123
'django.contrib.admin',
2224
'django.contrib.auth',
2325
'dbtemplates',
2426
]
2527

26-
MIDDLEWARE_CLASSES = (
28+
MIDDLEWARE = (
29+
'django.contrib.sessions.middleware.SessionMiddleware',
2730
'django.contrib.messages.middleware.MessageMiddleware',
2831
'django.contrib.auth.middleware.AuthenticationMiddleware',
2932
)
@@ -41,6 +44,7 @@
4144
'loaders': TEMPLATE_LOADERS,
4245
'context_processors': [
4346
'django.contrib.auth.context_processors.auth',
47+
'django.contrib.messages.context_processors.messages',
4448
]
4549
}
4650
},

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ minversion = 1.8
55
envlist =
66
flake8-py{27,37},
77
twine-check-py{27,37},
8-
py{27,34,35,36}-dj111
9-
py{34,35,36,37}-dj20
8+
py{27,35,36}-dj111
109
py{35,36,37}-dj21
10+
py{35,36,37}-dj22
1111

1212
[testenv]
1313
basepython =
1414
py27: python2.7
15-
py34: python3.4
1615
py35: python3.5
1716
py36: python3.6
1817
py37: python3.7
@@ -24,6 +23,7 @@ deps =
2423
dj111: Django<2.0
2524
dj20: Django<2.1
2625
dj21: Django<2.2
26+
dj22: Django<2.3
2727
djmaster: https://github.com/django/django/archive/master.tar.gz#egg=django
2828

2929
commands =

0 commit comments

Comments
 (0)