database connection error - postgresql
bijoy
bijoy.franco at gmail.com
Mon Mar 30 04:00:18 EDT 2009
Hi,
*code:* (only the class definiton and Database connection part)
import pg
__metaclass__=type
class addbook:
conn=pg.connect('secondbooks.db')
curs=conn.cursor()
*error:*
conn=pg.connect("secondbooks.db")
pg.InternalError: FATAL: database "secondbooks.db" does not exist
----------------------------------------------------------------------------------------------------
In fact i have a database called secondbooks in postgresql.
Pls help on this as i am new to python.
Thanks in advance
Bijoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090330/b754cea5/attachment.html>
More information about the Python-list
mailing list