Django's Loaddata Error

98 views
Skip to first unread message

jagmeet...@consultadd.in

unread,
Jul 21, 2015, 7:42:42 AM7/21/15
to django-res...@googlegroups.com
Hi Folks,

Problems I am facing while running this command: "python manage.py tenant_command loaddata tenant.json"
I am getting a error like this:

django.db.utils.IntegrityError: Problem installing fixture '/home/jagmeet/consultadd_workspace/devenv/ckiller/tenant.json': Could not load account.EmailAddress(pk=1): duplicate key value violates unique constraint "account_emailaddress_email_key"
DETAIL:  Key (email)=(a...@abc.com) already exists.


I had lots of data in my tenant as well as public schema but I truncated all my tables in database and executed the loaddata command and the data(from tenant.json) is failed to load into that the schema of database.

Please reply asap.
Thanks.

Juan Gutierrez

unread,
Jul 21, 2015, 9:13:38 AM7/21/15
to django-res...@googlegroups.com
This seems like a question that would be more approriate for the Django user's group: https://groups.google.com/forum/#!forum/django-users
Reply all
Reply to author
Forward
0 new messages