Commit a587263b authored by Baptiste Jonglez's avatar Baptiste Jonglez

settings: Add localhost to ALLOWED_HOSTS

Starting from Django 1.9.11, ALLOWED_HOSTS is also taken into account when
DEBUG is turned on.

See https://docs.djangoproject.com/en/1.10/releases/1.9.11/#dns-rebinding-vulnerability-when-debug-true
parent 3f145749
......@@ -22,7 +22,7 @@ SECRET_KEY = 'ei3#@ejlp((&tlx2jrscs^wrvpn$y4o-7_(-$a_uc9%j3eux1*'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '::1']
# Application definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment