Hi,

I am running django svn, and have created a fixture called
initial_data.json, it was working just fine. Lately I added a new
model, after the new model addition every time I run syncdb I get this
error:
Problem installing fixture 'initial_data.json': (1062, "Duplicate
entry 'pw-application' for key 2")

application is the name of one of the models I already have.
SessionData is the name of the new model

Strangely enough the error message changes when I change the position
of SessionData model inside models.py, that is when I append the model
code to the end or the middle of the file code, or when I change the
new model's name.
Here is another error sample:
Problem installing fixture 'initial_data.json': (1062, "Duplicate
entry 'pw-applicationcategory' for key 2")
applicationcategory is another model is the system

I tried changing the new model, I even replaced it with a test model
that only contains one char field, but the error persisted.

I tried to remove the new model and run syncdb then reinsert the model
code again and run syncdb to create the table, no error message
appeared. I run:
python manage dumbdata  > initial_data.json
So far everything was fine, but when I dropped the database and
recreated it and run syncdb the same error message appeared.

I would really appreciate your help.

Thanks,
Nadia

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to