Saturday, December 31, 2011

"syncdb --database=xxx" not working

Hello,

I've tried to setup a project that supports two different databases, a
postgres-db and a mysql-db. The DATABASES-setting is configured
properly with a 'default' key for the mysql-db and 'pg' for the
postgres. However, if I try to syncdb the postgres-db, manage.py
accesses the 'default' mysql-db.
This is what I enter in the commandline: "python manage.py syncdb --
database=pg", like documented here: <https://docs.djangoproject.com/en/
1.3/topics/db/multi-db/>
It seems that the --database option is ignored. Why?

Regards,
Andreas

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

No comments:

Post a Comment