DisallowedHost Invalid HTTP_HOST header: '127.0.0.1:8000'. You may need to add u'127.0.0.1' to ALLOWED_HOSTS.

Raised by:

django/http/request.py (line 113)

Traceback (most recent call last):
  File "python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "python2.7/site-packages/django/core/handlers/base.py", line 244, in _legacy_get_response
    response = middleware_method(request)
  File "python2.7/site-packages/django/middleware/common.py", line 57, in process_request
    host = request.get_host()
  File "python2.7/site-packages/django/http/request.py", line 113, in get_host
    raise DisallowedHost(msg)
DisallowedHost: Invalid HTTP_HOST header: '127.0.0.1:8000'. You may need to add u'127.0.0.1' to ALLOWED_HOSTS.