SHARE
TWEET

Untitled

a guest Aug 6th, 2011 103 Never
  1. Problem installing fixture '../dumpdata.json': Traceback (most recent call last):
  2.   File "c:\Python26\lib\site-packages\django\core\management\commands\loaddata.py", line 174, in handle
  3.     obj.save(using=using)
  4.   File "c:\Python26\lib\site-packages\django\core\serializers\base.py", line 165, in save
  5.     models.Model.save_base(self.object, using=using, raw=True)
  6.   File "c:\Python26\lib\site-packages\django\db\models\base.py", line 526, in save_base
  7.     rows = manager.using(using).filter(pk=pk_val)._update(values)
  8.   File "c:\Python26\lib\site-packages\django\db\models\query.py", line 491, in _update
  9.     return query.get_compiler(self.db).execute_sql(None)
  10.   File "c:\Python26\lib\site-packages\django\db\models\sql\compiler.py", line 869, in execute_sql
  11.     cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  12.   File "c:\Python26\lib\site-packages\django\db\models\sql\compiler.py", line 735, in execute_sql
  13.     cursor.execute(sql, params)
  14.   File "c:\Python26\lib\site-packages\django\db\backends\util.py", line 34, in execute
  15.     return self.cursor.execute(sql, params)
  16.   File "c:\Python26\lib\site-packages\django\db\backends\sqlite3\base.py", line 234, in execute
  17.     return Database.Cursor.execute(self, query, params)
  18. IntegrityError: column name is not unique
RAW Paste Data
Top