Merge pull request #439 from danil-smirnov/web-settings-py-cleanup
Removing redundant code
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user