import web

web.config.db_parameters = dict(dbn='postgres', user='username',
pw='password', db='dbname')
web.load() # this is the important bit

web.select(...)

but from apparently .30 doesn't require web.load()

On Dec 5, 2007 5:04 PM, Zack <[EMAIL PROTECTED]> wrote:
>
> For scripts that aren't going to run through a bowser, how do you
> access the database (through web.py) without running a webserver?

-- 
Hermann Käser
http://theragingche.com/
http://semicir.cl/user/hermzz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to