When I am using the following command:
import psycopg2
psycopg2.connect("postgresql://postgres:postgres@localhost/postgres")
It is giving the following error:
psycopg2.OperationalError: missing "=" after
"postgresql://postgres:postgres@localhost/postgres" in connection info string
Can anyone tell me why? How do I fix this?