Fix deprecation warnings for django 1.10

This commit is contained in:
David Taylor
2017-05-10 18:30:17 +01:00
parent 7f680dcffb
commit 83028418fe
4 changed files with 10 additions and 12 deletions

View File

@@ -26,8 +26,6 @@ DEBUG = bool(int(os.environ.get('DEBUG'))) if os.environ.get('DEBUG') else True
STAGING = bool(int(os.environ.get('STAGING'))) if os.environ.get('STAGING') else False
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = ['pyrigs.nottinghamtec.co.uk', 'rigs.nottinghamtec.co.uk', 'pyrigs.herokuapp.com']
if STAGING:
@@ -221,7 +219,8 @@ TEMPLATES = [
"django.template.context_processors.tz",
"django.template.context_processors.request",
"django.contrib.messages.context_processors.messages",
]
],
'debug': DEBUG
},
},
]