Skip to content

Commit

Permalink
remove old django code from demoproject settings
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Dec 30, 2021
1 parent f2fb33b commit e3d3dcc
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions demoproject/demoproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,8 @@
},
}]

# for Django < 1.8
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'admin_tools.template_loaders.Loader',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.static",
"django.core.context_processors.csrf",
"django.core.context_processors.tz",
"django.core.context_processors.request",
)


MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand All @@ -174,7 +157,6 @@
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
MIDDLEWARE = MIDDLEWARE_CLASSES


ROOT_URLCONF = 'demoproject.urls'
Expand Down

0 comments on commit e3d3dcc

Please sign in to comment.