Skip to content

Instantly share code, notes, and snippets.

@luchux
Created August 1, 2013 04:06
Show Gist options
  • Save luchux/6128340 to your computer and use it in GitHub Desktop.
Save luchux/6128340 to your computer and use it in GitHub Desktop.
Problem installing fixture 'factorie.json': Traceback (most recent call last):
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 196, in handle
obj.save(using=using)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/core/serializers/base.py", line 165, in save
models.Model.save_base(self.object, using=using, raw=True)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/db/models/base.py", line 551, in save_base
result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/db/models/manager.py", line 203, in _insert
return insert_query(self.model, objs, fields, **kwargs)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/db/models/query.py", line 1593, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 910, in execute_sql
cursor.execute(sql, params)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/db/backends/util.py", line 40, in execute
return self.cursor.execute(sql, params)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 114, in execute
return self.cursor.execute(query, args)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/Users/luchux/Development/cottonon/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
DatabaseError: Could not load homepage.Homepage(pk=3): (1054, "Unknown column 'attached_book_id' in 'field list'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment