Configuración de Django: psycopg2.OperationalError: FATAL: La autenticación de par ha fallado para el usuario "indivo"

Estoy teniendo problemas en la configuración del proyecto Django con POSTGRESQL.

Aquí está mi configuración de base de datos setting.py

DATABASES = {
    'default':{
        'ENGINE':'django.db.backends.postgresql_psycopg2', # '.postgresql_psycopg2', '.mysql', or '.oracle'
        'NAME':'indivo', # Required to be non-empty string
        'USER':'indivo', # Required to be non-empty string
        'PASSWORD':'ritvik',
        'HOST':'', # Set to empty string for localhost.
        'PORT':'', # Set to empty string for default.
        },
}

Ahora en backgres backend lo que he hecho es.

rohit@rohit-desktop:~$ sudo su - postgres
postgres@rohit-desktop:~$ createuser --superuser indivo   # create a super user indivo
postgres@rohit-desktop:~$ psql  # open psql terminal 
psql (9.1.8)
Type "help" for help.

postgres=# \password indivo  # set the password ritvik
Enter new password: 
Enter it again: 
postgres=# \q   #logout 
postgres@rohit-desktop:~$ createdb -U indivo -O indivo indivo  #create db indivo 

Desafortunadamente, cuando estoy intentando sincronizar, recibo el error.

psycopg2.OperationalError: FATAL:  Peer authentication failed for user "indivo"

Por favor, ayúdame, ¿qué podría estar haciendo mal aquí?

Respuestas a la pregunta(4)

Su respuesta a la pregunta