On 06-12-11 01:24, Marc Edwards wrote:
DatabaseError at/admin/bookmarks/eda_appcatalog/
no such column: bookmarks_eda_appcatalog.eda_app_id
The "eda_app_id" colum is what Django uses to store the foreign key. You
probably added the foreign key after creating the EDA_AppCatalog class.
Your syncdb after creating EDA_AppCatalog created the table.
After adding the foreign key, the table already exists, so syncdb
doesn't do anything. For adding columns to existing tables, syncdb is
useless.
- Either create the column by hand.
- Delete the table and re-create it with syncdb (it will now contain the
foreign key column).
- Use south for database migrations.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.