Skip to content

Commit

Permalink
Use new MIDDLEWARE notation (fixes #430)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed May 1, 2018
1 parent 031ecc2 commit ed5b2c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion demo/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
# Make this unique, and don't share it with anybody.
SECRET_KEY = '8s)l4^2s&&0*31-)+6lethmfy3#r1egh^6y^=b9@g!q63r649_'

MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
5 changes: 0 additions & 5 deletions testsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
'bootstrap3',
)

try:
MIDDLEWARE_CLASSES = DEFAULT_SETTINGS.MIDDLEWARE_CLASSES
except AttributeError:
pass

TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
Expand Down

0 comments on commit ed5b2c8

Please sign in to comment.