If you absolutely need to do so, you can execute raw sql queries to do
whatever you need using Django. The docs are here:
http://docs.djangoproject.com/en/1.2/topics/db/sql/

<http://docs.djangoproject.com/en/1.2/topics/db/sql/>However, it's probably
a 'bad' idea to go mucking about with sql if you can at all avoid it.

On Tue, Nov 23, 2010 at 8:26 AM, 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.
>
>

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