On Wed, Nov 19, 2008 at 6:26 PM, paul jobs <[EMAIL PROTECTED]> wrote:
> thanks
> http://webpy.org/cookbook/sqlalchemy
> does
> python models.py create the postgres tables too?
>
>
> On 11/19/08, Brent Pedersen <[EMAIL PROTECTED]> wrote:
>>
>> hi, i added a recipe for using sqlalchemy with web.py
>> http://webpy.org/cookbook/sqlalchemy
>>
>> it's based off a mailing list post, and the sqlalchemy 0.5 docs.
>> can someone verify that it looks correct?
>>
>>
>> i noticed that if i use 3 yields from the view.GET rather than
>> returning the single string, then commit does not
>> get called in the loadhook. why is that?
>>
>> -brent
>>
>>
>>
>> >>
>


it will if you change the engine, currently:
engine = create_engine('sqlite:///mydatabase.db', echo=True)

to a valid dburi for postgres
http://www.sqlalchemy.org/docs/05/dbengine.html#dbengine_establishing

--~--~---------~--~----~------------~-------~--~----~
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