django-modern-template
django-modern-template copied to clipboard
ALLOWED_HOSTS
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