diff --git a/ixc_django_docker/settings/base.py b/ixc_django_docker/settings/base.py index f14351d..a24a076 100644 --- a/ixc_django_docker/settings/base.py +++ b/ixc_django_docker/settings/base.py @@ -270,13 +270,15 @@ 'django.middleware.clickjacking.XFrameOptionsMiddleware', ) -if django.VERSION < (1, 10): +if django.VERSION >= (1, 8): MIDDLEWARE += ('django.contrib.admindocs.middleware.XViewMiddleware', ) +else: + MIDDLEWARE += ('django.middleware.doc.XViewMiddleware', ) - if django.VERSION >= (1, 7): - MIDDLEWARE += ( - 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', - ) +if (1, 7) <= django.VERSION < (1, 10): + MIDDLEWARE += ( + 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', + ) ROOT_URLCONF = 'ixc_django_docker.urls'