1
You most likely ran syncdb
before adding the user
ForeignKey
to your Project
model, so the user_id
column (which represents the ForeignKey
) does not exist.
If you’re still developing and don’t care about the data in your database, just remove the database file and run syncdb
again. If you do care about the data, look into south
for a data migration.
The issue has nothing to do with the API, if you opened the Django admin you’d get the same error.
Source:stackexchange.com