with following setting i am not able to connect database . since i overwrite my previous settings that was working fine . now missing something that cause the error any help ?
DATABASES = {
'default': {
'ENGINE':'django.db.backends.postgresql_psycopg2',
'NAME':'postgres',
'HOST':'AFGHANINVEST-XXX.postgres.pythonanywhere-services.com',
'PASSWORD':'Pasword',
'USER':'AFGHANINVEST',
'Port':'10340',
}
}
django.db.utils.OperationalError: could not connect to server: Connection refused Is the server running on host "AFGHANINVEST-XXX.postgres.pythonanywhere-services.com" (10.0.0.45) and accepting TCP/IP connections on port 5432?