Programmatically connecting to a database

2010-08-13 Thread Jonathan Endersby
Hi I have a requirement that I imagine can't be too unique, however I am unable to find examples online of how to achieve what I'm trying to do. In simple terms, I need a setup where each one of my user's data is stored in their own database. (We're using mysql). I have a master database that st

Re: Programmatically connecting to a database

2010-08-15 Thread Jonathan Endersby
[quasi-psudo-code] orm = connectToDB('localhost,'user','password') poll = orm.MyPoll() poll.question = 'How are you?' poll.save() [/quasi-psudo-code] I realise it's not very django'y, but for my use case that would be the simplest approach.

Re: Error

2010-10-01 Thread Jonathan Endersby
Hi You have a function or method that is calling itself. Something like this: def foo(): print "fun" bar = foo() print "never going to happen" J. On 01 Oct 2010 9:49 PM, "Tsolmon Narantsogt" wrote: > So how fix it ? > > On Sat, Oct 2, 2010 at 1:37 AM, Brandon Taylor wrote: > >>

PyStack and Djangoverflow

2011-05-15 Thread Jonathan Endersby
Hi If you're on Twitter you might want to follow these two feeds of highly rated Python and Django questions from Stack Overflow. http://twitter.com/#!/djangoverflow and http://twitter.com/#!/pystack -- Jonathan -- You received this message because you are subscribed to the Google Groups