Score:0

DisallowedHost at / Invalid HTTP_HOST header: '192.168.0.245:8000'. You may need to add '192.168.0.245' to ALLOWED_HOSTS

bb flag

Run GeoNode Project

This command will run both GeoNode and GeoServer locally after having prepared the Spatialite database. The server will start in DEBUG (or DEVELOPMENT) mode, and it will start the following services:

GeoNode on http://localhost:8000/

GeoServer on http://localhost:8080/geoserver/

Run the server in DEBUG mode

./paver_dev.sh start


This server has IP 192.168.0.245

When I open this URL http://192.168.0.245:8000/ in Chrome in another machine, I get this error:

DisallowedHost at /

Invalid HTTP_HOST header: '192.168.0.245:8000'. You may need to add '192.168.0.245' to ALLOWED_HOSTS.

I´ve checked and I know that I have to add '192.168.0.245' to ALLOWED_HOSTS in settings.py file, I've done that on /opt/geonode/geonode/settings.py: ALLOWED_HOSTS = [HOSTNAME, 'localhost', '192.168.0.245', 'django', 'geonode']

but keep getting the same error. DO i need to restart Django? Am I editing the correct file?

Please help

Thanks

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.