Thanks Russ

On Jan 7, 4:20 pm, Russell Keith-Magee <freakboy3...@gmail.com> wrote:
> On Thu, Jan 7, 2010 at 6:51 PM, cschand <csch...@gmail.com> wrote:
> > When I run syncdb command it creates tables for default (dbtest1
> > database) only. How can I create tables for db2? Is it possible to
> > create at runtime?
>
> syncdb (and all the other database-related management commands) now
> takes a --database argument, which allows you to specify the database
> alias on which to operate. By default, the 'default' database is used,
> but if you run './manage.py syncdb --database=db2', the db2 database
> will be synchronized.
>
> However, I just noticed that this isn't mentioned in the multi-db docs
> - I'll add a section to avoid confusion in future.
>
> Yours,
> Russ Magee %-)
-- 
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