Cannot connect to PostgreSQL (listening on port 5432) in Bitnami Django (VM VirtualBox)

Edit the postgresql.conf (in the folder /opt/bitnami/postgresql/conf), by adding this line
#-------------------------------------------
# CONNECTONS AND AUTHENTICATION
#-------------------------------------------
listen_addresses = '*'

postgresql.conf
Restart the service,
bitnami@debian:~$ sudo /opt/bitnami/ctlscript.sh restart postgresql
Check the remote connection again,
bitnami@debian:~$ pg_isready
postgresql_service

Ref:
Edit the postgresql.conf