Re: Add db tables on-the-fly

2008-06-23 Thread Michael P. Soulier
MickaelC wrote: > It is not really a problem > It's for a multi user app. For each new users, i create a serie table > or all data in the same table? > If it's easy to create table on-the-fly when a new user registers, i > prefere. > > but I do not see how If you must, that is what raw SQL is for

Re: Add db tables on-the-fly

2008-06-22 Thread Ned Batchelder
Creating a table per user is definitely going against the grain in a relational database world. You'll be much happier with one table to store the data across users, with a foreign key to the users table to keep everything straight. --Ned. http://nedbatchelder.com MickaelC wrote: > It is not

Re: Add db tables on-the-fly

2008-06-22 Thread MickaelC
It is not really a problem It's for a multi user app. For each new users, i create a serie table or all data in the same table? If it's easy to create table on-the-fly when a new user registers, i prefere. but I do not see how MickaelC (Désolé for my English) On 22 juin, 14:07, Christian Joerge

Re: Add db tables on-the-fly

2008-06-22 Thread Christian Joergensen
MickaelC wrote: > Hi, > It is a method to add tables to a model without having to manually > launch the syncdb command in a shell? > > If yes > can you give me tips ? > else > :-( What problem are you trying to solve? This really doesn't sound like a common Django idiom. If you insist,