Seeing as we no longer support these versions of Django, there is no
need to keep these blocks around.
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
'django.middleware.csrf.CsrfViewMiddleware',
]
-if django.VERSION < (1, 7):
- MIDDLEWARE_CLASSES.append('django.middleware.doc.XViewMiddleware')
-else:
- MIDDLEWARE_CLASSES.append(
- 'django.contrib.admindocs.middleware.XViewMiddleware')
+MIDDLEWARE_CLASSES.append(
+ 'django.contrib.admindocs.middleware.XViewMiddleware')
# Globalization
},
}
-if django.VERSION < (1, 7):
- DATABASES['default']['TEST_CHARSET'] = 'utf8'
-else:
- DATABASES['default']['TEST'] = {
- 'CHARSET': 'utf8',
- }
+DATABASES['default']['TEST'] = {
+ 'CHARSET': 'utf8',
+}
#
# Patchwork settings
#
STATIC_ROOT = '/srv/patchwork/htdocs/static'
-
import os
import time
-try: # django 1.7+
- from django.contrib.staticfiles.testing import StaticLiveServerTestCase
-except:
- from django.test import LiveServerTestCase as StaticLiveServerTestCase
+from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from selenium.common.exceptions import (
NoSuchElementException, StaleElementReferenceException,
TimeoutException)