Removing redundant code
This commit is contained in:
@@ -105,7 +105,7 @@ except ImportError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
_MIDDLEWARE = (
|
MIDDLEWARE = (
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
@@ -118,17 +118,8 @@ _MIDDLEWARE = (
|
|||||||
'postorius.middleware.PostoriusMiddleware',
|
'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'
|
ROOT_URLCONF = 'urls'
|
||||||
|
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
|
|||||||
Reference in New Issue
Block a user