Thread: how to connect?

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    4
    Rep Power
    0

    how to connect?


    hi,

    how do i connect python to postgresql using cgi-bin? can someone give me complete simple example plz?

    thanks a lot
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    I've never used Python with PostgreSQL but it should be pretty much the same idea as with MySQL or SQLite. Anyway the first thing you should do is grab one of the the modules from the Python site:

    http://www.python.org/topics/database/modules.html

    And read though the exelent MySQL article in devsheds Python section.

    http://www.devshed.com/c/a/Python/My...y-With-Python/

    Hope this helps some,

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo