I've installed sentry for my django app and just switched from debug=True to False. Ever since I've made this change I've been logging errors once every 10 minutes or so.
This is the full error:
Traceback (most recent call last):
File "/home/ubuntu/postalenv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 92, in get_response
response = middleware_method(request)
File "/home/ubuntu/postalenv/local/lib/python2.7/site-packages/django/middleware/common.py", line 57, in process_request
host = request.get_host()
File "/home/ubuntu/postalenv/local/lib/python2.7/site-packages/django/http/request.py", line 72, in get_host
"Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): %s" % host)
SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): localhost
In my allowed_hosts I have included my domain name. Any idea what this is caused by?