Wednesday, 4 May 2022

Django settings.py allowed_host to resolve invalid HTTP_HOST header issue

 https://stackoverflow.com/questions/44184268/django-invalid-http-host-header-testserver-you-may-need-to-add-utestserver

#Add desired IP if other than localhost

settings.py file:

ALLOWED_HOSTS = ['127.0.0.1', 'localhost']


No comments:

Post a Comment