Forums

Invalid HTTP_HOST header error even though I have added app to the allowed hosts

I am trying to deploy a Django webapp to prakharrathi25.pythonanywhere.com. Even though I have added the name to the allowed hosts I am still getting the following error - Invalid HTTP_HOST header: 'prakharrathi25.pythonanywhere.com'.

The log files are here

are you sure you are looking at the most recent message? it would be at the bottom of the error log.

Gosh, yeah I was looking at the top message. I found and rectified the error when I checked at the bottom. Thanks!

No problem, glad you got that fixed!