Skip to content

Commit

Permalink
Changed deprecated MIDDLEWARE_CLASSES
Browse files Browse the repository at this point in the history
  • Loading branch information
fasouto committed Dec 5, 2017
1 parent 3ad4b28 commit c6edf09
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 28 deletions.
4 changes: 2 additions & 2 deletions project_name/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@


# MIDDLEWARE SETTINGS
# See: https://docs.djangoproject.com/en/1.10/ref/settings/#middleware-classes
MIDDLEWARE_CLASSES = [
# See: https://docs.djangoproject.com/en/1.10/ref/settings/#middleware
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
Expand Down
2 changes: 1 addition & 1 deletion project_name/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
def show_toolbar(request):
return not request.is_ajax() and request.user and request.user.is_superuser

MIDDLEWARE_CLASSES += ["debug_toolbar.middleware.DebugToolbarMiddleware", ]
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware", ]
INSTALLED_APPS += ["debug_toolbar", ]

DEBUG_TOOLBAR_CONFIG = {
Expand Down
66 changes: 41 additions & 25 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,57 @@
alabaster==0.7.9
argon2-cffi==16.2.0
alabaster==0.7.10
argon2-cffi==16.3.0
asn1crypto==0.23.0
astroid==1.4.8
Babel==2.3.4
bcrypt==3.1.0
cffi==1.7.0
attrs==17.3.0
Babel==2.5.1
bcrypt==3.1.4
certifi==2017.11.5
cffi==1.11.2
chardet==3.0.4
click==6.6
coverage==4.2
Django==1.10
coverage==4.4.2
cryptography==2.1.4
Django==1.10.7
django-appconf==1.0.2
django-compressor==2.1
django-debug-toolbar==1.5
docutils==0.12
django-compressor==2.2
django-debug-toolbar==1.9.1
docutils==0.14
ecdsa==0.13
Fabric==1.12.0
Fabric==1.14.0
first==2.0.1
flake8==3.0.4
flake8==3.5.0
idna==2.6
imagesize==0.7.1
isort==4.2.5
Jinja2==2.8
Jinja2==2.10
lazy-object-proxy==1.2.2
MarkupSafe==0.23
mccabe==0.5.2
paramiko==1.17.2
MarkupSafe==1.0
mccabe==0.6.1
paramiko==2.4.0
pep8==1.7.0
pip-tools==1.7.0
psycopg2==2.6.2
pycparser==2.14
pluggy==0.6.0
psycopg2==2.7.3.2
py==1.5.2
pyasn1==0.4.2
pycodestyle==2.3.1
pycparser==2.18
pycrypto==2.6.1
Pygments==2.1.3
pyflakes==1.6.0
Pygments==2.2.0
pylint==1.6.4
pytest==3.0.3
pytz==2016.6.1
PyNaCl==1.2.1
pytest==3.3.0
pytz==2017.3
rcssmin==1.0.6
requests==2.18.4
rjsmin==1.0.12
six==1.10.0
six==1.11.0
snowballstemmer==1.2.1
Sphinx==1.4.6
sqlparse==0.2.1
tox==2.4.1
Sphinx==1.6.5
sphinxcontrib-websupport==1.0.1
sqlparse==0.2.4
tox==2.9.1
urllib3==1.22
virtualenv==15.1.0
wrapt==1.10.8

0 comments on commit c6edf09

Please sign in to comment.