Q:

How to debug "You may need to add 'maginate.net' to ALLOWED_HOSTS"

I know this question is very similar to others, but I read all of them and still have not found a solution.
I registered maginate.net with Google Domains so the domain is active. When entering that domain it gives a DisallowedHost Exception. It says to put the domain name in ALLOWED_HOSTS, which I did, in the local_settings.py. And when I put the IP address 206.189.179.58, the website runs perfectly. In my ALLOWED_HOST is a list:
ALLOWED_HOSTS = ['206.189.179.58', 'maginate.net', 'www.maginate.net']

And yes I have restarted the server many times. I don't know if my settings.py has anything to do with this, but leaving the ALLOWED_HOSTS blank or not still gives the error. I'm also following this tutorial and doing exactly what it says.

A:

You have updated the settings.py in only local system and you have not uploaded the updated settings code to production.
I went through your url and error it is showing that.

see your ALLOWED_HOSTS it only contains '206.189.179.58' and 'maginate.net' and 'www.maginate.net' is not added in ALLOWED_HOSTS.
Just try changing and uploading.

Update after seeing code

You have put your settings.py and local_settings.py inside portfolio directory but it should be inside portfolio/portfolio
It will work fine.

