From 50f02a50bc64e52909ecbcc01748f4521c49263d Mon Sep 17 00:00:00 2001 From: Nikolaus Schlemm Date: Wed, 19 Jun 2019 13:37:44 +0200 Subject: [PATCH] added django 2.2, dropped django 2.0 and python 3.4 keeping in sync with https://www.djangoproject.com/download/#supported-versions --- .travis.yml | 1 - dbtemplates/test_settings.py | 6 +++++- tox.ini | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 507e9a2..7eb95fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - '2.7' -- '3.4' - '3.5' - '3.6' # Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs diff --git a/dbtemplates/test_settings.py b/dbtemplates/test_settings.py index 1281399..198fdde 100644 --- a/dbtemplates/test_settings.py +++ b/dbtemplates/test_settings.py @@ -18,12 +18,15 @@ DATABASES = { INSTALLED_APPS = [ 'django.contrib.contenttypes', 'django.contrib.sites', + 'django.contrib.sessions', + 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.auth', 'dbtemplates', ] -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( + 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) @@ -41,6 +44,7 @@ TEMPLATES = [ 'loaders': TEMPLATE_LOADERS, 'context_processors': [ 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', ] } }, diff --git a/tox.ini b/tox.ini index 2360992..3173f59 100644 --- a/tox.ini +++ b/tox.ini @@ -5,14 +5,13 @@ minversion = 1.8 envlist = flake8-py{27,37}, twine-check-py{27,37}, - py{27,34,35,36}-dj111 - py{34,35,36,37}-dj20 + py{27,35,36}-dj111 py{35,36,37}-dj21 + py{35,36,37}-dj22 [testenv] basepython = py27: python2.7 - py34: python3.4 py35: python3.5 py36: python3.6 py37: python3.7 @@ -24,6 +23,7 @@ deps = dj111: Django<2.0 dj20: Django<2.1 dj21: Django<2.2 + dj22: Django<2.3 djmaster: https://github.com/django/django/archive/master.tar.gz#egg=django commands =