The host you are running helios on is not set in settings.py as an allowed host. Settings.py has a configuration ALLOWED_HOSTS. Try
ALLOWED_HOSTS = [‘127.0.0.1']
The setting is probably set by default as localhost. I think most systems will recognise 127.0.0.1 as localhost, but this is does not seem to be happening.
There is another setting you might also need to set:
You don’t need to have a separate .env file but it is better practice to use an .env file and .gitignore it if you intend to keep your code on Github. Otherwise, if you write these secrets directly into settings.py they will be visible on Github.
In settings.py you should have:
GOOGLE_CLIENT_ID = os.environ['GOOGLEID']
GOOGLE_CLIENT_SECRET = os.environ['GOOGLESECRET’]
In your .env file you will have the actual values. If you are not making your code visible to anyone you could write the values directly into settings.py.
You may not need DBPWD. This is your database password but you may not need it.
The current database settings are:
DATABASES = { |
| 'default': { |
| 'ENGINE': 'django.db.backends.postgresql_psycopg2', |
| 'NAME': 'helios', |
| 'CONN_MAX_AGE': 600, |
| }, |
| } |
You may need to add, for example, USER and PASSWORD:
DATABASES = {