Removing redundant code

This commit is contained in:
Danil Smirnov
2021-02-28 20:25:45 +02:00
parent 17b041c926
commit 484e37f447

View File

@@ -105,7 +105,7 @@ except ImportError:
pass
_MIDDLEWARE = (
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@@ -118,17 +118,8 @@ _MIDDLEWARE = (
'postorius.middleware.PostoriusMiddleware',
)
# Use old-style Middleware class in Python 2 and released versions of
# Django-mailman3 don't support new style middlewares.
if sys.version_info < (3, 0):
MIDDLEWARE_CLASSES = _MIDDLEWARE
else:
MIDDLEWARE = _MIDDLEWARE
ROOT_URLCONF = 'urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',