Ustawienie Django: psycopg2.OperationalError: FATAL: uwierzytelnianie równorzędne nie powiodło się dla użytkownika „indivo”

Mam problem z ustawieniem projektu Django za pomocą POSTGRESQL.

Oto moje ustawienie bazy danych 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.
        },
}

Teraz w postgres backend to, co zrobiłem, jest.

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 

Niestety, gdy próbuję synchronizować, otrzymuję błąd.

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

Pomóż mi, co mogę zrobić źle tutaj.

questionAnswers(4)

yourAnswerToTheQuestion