Wednesday, October 30, 2013

Re: multiple databases and syncdb problem

On Tue, Oct 29, 2013 at 9:35 PM, Simon Charette <charette.s@gmail.com> wrote:
> syncdb defaults to syncing the 'default' database when no --database is
> specified.
>
> Try specifying which database to synchronize, with the --database=inserv
> flag in your case.
>

syncdb will only synch one DB at a time, and as Simon says, it will
default to 'default' if you do not specify a database. If you have
multiple databases, you need to call syncdb once for each of them.

A warning, if you have South installed, syncdb gains a '--all'
argument; this does not synch to all databases, it synchs all apps,
even migrated ones, which is probably not what you want.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1LBNQEGgyrBvP%3DUy6rDnA1-0tnDY_urRs%2BcGz%2ByiSHGSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment