django-modern-template icon indicating copy to clipboard operation
django-modern-template copied to clipboard

ALLOWED_HOSTS

Open FredDgrv opened this issue 11 years ago • 0 comments

I had to add ALLOWED_HOSTS = [DOMAIN_NAME] in my settings prod to avoid that error

Traceback (most recent call last):

File "/app/.heroku/src/django/django/core/handlers/base.py", line 92, in get_response response = middleware_method(request)

File "/app/.heroku/src/django/django/middleware/common.py", line 57, in process_request host = request.get_host()

File "/app/.heroku/src/django/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): myproject.herokuapp.com

FredDgrv avatar May 26 '13 21:05 FredDgrv