None that I know of, but I am no Django guru. I get the feeling I'm missing
something about your situation however. It seems like you should be able to
accomplish what you want, saving unique info about each game, without
per-game tables. You have a many to many relationship between games and
users (ie each user can have multiple games & each game can have multiple
users), yes?  If so, you can store additional information in the bridge
table that Django creates. Check the docs for ManyToMany fields:
http://docs.djangoproject.com/en/1.2/ref/models/fields/#django.db.models.ManyToManyField
 &
http://docs.djangoproject.com/en/1.2/topics/db/models/#intermediary-manytomany



On Tue, Nov 23, 2010 at 8:55 AM, Li You <vbs0...@gmail.com> wrote:

> Because I want to save user's info about each game. And the best way
> is to save the info by each game.
>
> On Tue, Nov 23, 2010 at 9:26 PM, ringemup <ringe...@gmail.com> wrote:
> > Perhaps there's another way to accomplish your goal.  Why do you want
> > a table for each game?
> >
> > On Nov 23, 5:14 am, vbs <vbs0...@gmail.com> wrote:
> >> Hi all,
> >>
> >> This is my situation, I want to make a web based game-hall.
> >> I have a model named Game. When I add a new game from the admin panel,
> >> a new record will be added to the database table assigned to model
> >> Game. This is what django does.
> >> And at the same time, I also want a new database table to be created,
> >> named as the name of the new game, or with some prefix. It's best to
> >> have a model assigned to this table.
> >>
> >> Is there any way to do this?
> >>
> >> Thank you.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
> >
> >
>
>
>
> --
> Best Regards!
>
> Li You
> University of Science and Technology of China
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to