[Tutor] Help on Python to PostgreSQL and CGI

John Fabiani jfabiani at yolo.com
Sat Aug 7 19:01:48 CEST 2004


On Saturday 07 August 2004 00:40, Ms Soo Chong wrote:
> Hi,
>
> I am currently a fourth year Uni student who is working on a Thesis that
> required me to use python language to develop a webpage that user to query
> on. I have to use python language to fetch data from PostgreSQL and display
> it on a website where user to search from. I am so new to python and
> struggling so hard to learn and apply it. I wonder if anybody out there can
> help me a helping hand.
>
> I am currently reading through a book "Learning Python" and looking through
> some useful tutorials. I am actually searching for modules that can link
> postgreSQL and python together. Please give me some advice which at least
> help me to start up the program, cause I'm really lost. I wonder if the CGI
> tutorial on the python website
> :http://www.python.org/doc/lib/module-cgi.html, worked for my case?
>
> Operating System: Linux
> Programming Lang: Python
> Database : PostgreSQL
>
> Thank you.
>
> Really looking forward for your reply.
>
> Cheers.
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
Other may point you in a different direction - but I have found psycopg to be 
the best of the interfaces.  At least that's the one I was able to getting 
working with other modules.  Also take a look a the PDO module (look it up on 
google).  I found it very easy to use.  Of course I suggest that you also 
learn/ read DBAPI 2.0 (specially to how strings are handled).
John


More information about the Tutor mailing list