Invalid http_host header

前端 未结 3 679
Happy的楠姐
Happy的楠姐 2020-12-13 16:31

I am trying to develop a website using Django framework and launched using DigitalOcean.com and deployed the necessary files into django-project.

I had to include st

3条回答
  •  星月不相逢
    2020-12-13 17:22

    The error log is straightforward. As it suggested,You need to add 198.211.99.20 to your ALLOWED_HOSTS setting.

    In your project settings.py file,set ALLOWED_HOSTS like this :

    ALLOWED_HOSTS = ['198.211.99.20', 'localhost', '127.0.0.1']
    

    For further reading read from here.

提交回复
热议问题