Re: Can't figure out this Object Model error...

2011-12-05 Thread Furbee
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 wrote: > On 06-12-11 01:24, Marc Edwards wrote: > >>

Re: Can't figure out this Object Model error...

2011-12-05 Thread Reinout van Rees
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

Re: Can't figure out this Object Model error...

2011-12-05 Thread Marc Edwards
Even when I delete the class definition, re-sync the db, and then re- define the object, even setting the primary_key=True on a new CharField, I am still receiving the same error. Can it be that the database file has become corrupted in some manner for this object. I have not modified my SQLite

Re: Can't figure out this Object Model error...

2011-12-05 Thread Marc Edwards
This is the confusing part. The EDA_AppCatalog imports from my bookmarks package with no problem. My class definition for this object has only 1 field, a ForeignKey to an EDA_App. I know that the Object Model will be assigning an "ID" to the object when it stores it in the database. I am not

Re: Can't figure out this Object Model error...

2011-12-05 Thread Furbee
Don't mean to sound remedial, but have you verified that the table bookmarks_eda_appcatalog exists and that it has a column named eda_app_id? Did you use manage.py syncdb to create the tables? Furbee On Mon, Dec 5, 2011 at 4:24 PM, Marc Edwards wrote: > I am receiving

Can't figure out this Object Model error...

2011-12-05 Thread Marc Edwards
I am receiving the following error from the Django debugger when trying to access my EDA_AppCatalog object. My class definition is listed below. I have similar defined objects that are working with no problem, but I can't seem to clear this error message up. Thanks, Marc DatabaseError at