That is what I sort of assumed. You created the table with syncdb, changed the models.py for it and ran syncdb, which does nothing if the table already exists.
On Mon, Dec 5, 2011 at 5:04 PM, Reinout van Rees <rein...@vanrees.org>wrote: > 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/<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+unsubscribe@** > googlegroups.com <django-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en> > . > > -- 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.