I'm trying to configure the postgresql in django project, here is my settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'newdb',
'USER': 'vishnu',
'PASSWORD': 'dsvv',
'HOST': 'localhost',
'PORT': '',
}
}
when I run syncdb command it gives the error "OperationalError: FATAL: Ident authentication failed for user "vishnu"". I tried the answers given in this link "psql: FATAL: Ident authentication failed for user "postgres"" as well several other links but its still giving me the error.
what is the problem how can I fix it?