Re: Runtime initialisation of db_table from context

2008-05-31 Thread ChrisStoyles
Hi Ludvig, I'm afraid I don't understand what you are saying here? Django's ORM is probably a bit too new to me still, would you mind explaining what you're saying in a little more depth? Cheers, Chris Ludvig Ericson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > - -BEGIN PGP

Re: Runtime initialisation of db_table from context

2008-05-30 Thread Ludvig Ericson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > At a very high level, I have an application, which holds many > organisations, and these organisations each contain many products. I > may need to at times, partition the product data, so that some >

Re: Runtime initialisation of db_table from context

2008-05-29 Thread ChrisStoyles
Thanks Ben, That looks like it'll do it, I'll give it a whirl. Chris On May 29, 3:34 pm, "Ben Ford" <[EMAIL PROTECTED]> wrote: > Hi Chris, > > You could copy the whole model, ala DynamicModels on the wiki > [http://code.djangoproject.com/wiki/DynamicModels], I've sketched out a more > complete

Re: Runtime initialisation of db_table from context

2008-05-29 Thread Ben Ford
Hi Chris, You could copy the whole model, ala DynamicModels on the wiki [ http://code.djangoproject.com/wiki/DynamicModels], I've sketched out a more complete example here: http://www.djangosnippets.org/snippets/442/. This example (I say example as it's a bit rough around the edges - especially th

Runtime initialisation of db_table from context

2008-05-28 Thread ChrisStoyles
Hi Everyone, I've been doing some prototyping with django to see how good of a fit it will be for an upcoming project, and would like to run an idea past you guys. I'll try and explain my situation first, and then ask the question afterward. At a very high level, I have an application, which hol