how do i create a database in psycopg2 and do i need to?
before connecting to database, you need to create database, add user,  setup access for user you selected. 
Reffer to installation/configuration guides for Postgres.
I'm create a blog using django.
I'm getting an 'operational error: FATAL: role "[database user]" does not exist.
But i have not created any database yet, all i have done is filled in the database details in setting.py.
Do i have to create a database using psycopg2? If so, how do i do it? 
Is it:
python



import psycopg2
      psycopg2.connect("dbname=[name] user=[user]")



Thanks in advance.