Help with Multiple Databases Master/Slave
I have this database setup:
This is my db router file:
When I try to run ./manage.py syncdb --database=slave1 it starts to
create the tables, but when it gets to the auth_permission table I get
this error:
django.db.utils.IntegrityError: duplicate key value violates unique
constraint "auth_permission_content_type_id_codename_key"
DETAIL: Key (content_type_id, codename)=(19, add_registrationprofile)
already exists.
I looked in my master db and there is only one entry for the one
that's throwing the error. Any ideas what I can do? I have the django-
registration app installed and that's where the permission is coming
from.
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home