Re: ALLOWED_HOSTS error

2022-11-21 Thread Lakshyaraj Dash
No, Actually some ip addresses don't allow access to them directly. So you have to do it with a domain name. On Tue, Nov 22, 2022, 06:41 Mike Dewhirst wrote: > On 22/11/2022 11:54 am, Lakshyaraj Dash wrote: > > Put only domain names in allowed hosts > > > Thank you - that makes me feel better.

Re: ALLOWED_HOSTS error

2022-11-21 Thread Mike Dewhirst
On 22/11/2022 11:54 am, Lakshyaraj Dash wrote: Put only domain names in allowed hosts Thank you - that makes me feel better. Can you tell me why the error is appearing? Is it some sort of hacking attempt? On Tue, Nov 22, 2022, 06:22 Mike Dewhirst wrote: My Django log is full of

Re: ALLOWED_HOSTS error

2022-11-21 Thread Lakshyaraj Dash
Put only domain names in allowed hosts On Tue, Nov 22, 2022, 06:22 Mike Dewhirst wrote: > My Django log is full of these errors ... > > ERROR > /usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py > TIME: 2022-09-28 00:13:17,204 MSG: exception.py:response_for_exception:99 >

ALLOWED_HOSTS error

2022-11-21 Thread Mike Dewhirst
My Django log is full of these errors ... ERROR /usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py TIME: 2022-09-28 00:13:17,204 MSG: exception.py:response_for_exception:99 Invalid HTTP_HOST header: '111.222.333.444'. You may need to add '111.222.333.444' to