On Sat, Nov 7, 2009 at 8:39 PM, Bobby Roberts <[email protected]> wrote:

>
> Hi.  I have never used foreign keys.... I need to start and I need
> help.  I'm running python2.5 and django1.1.   I have an installation
> of Satchmo running fine; however, I need to modify the Product table.
> I need to tie fields from the Product module to fields in another
> module outside of satchmo.
>
> here's the setup:
>
> [snip]
>

As Rishabh said, a complete traceback instead of just the error message
would help people help you.  You may be hitting:

http://code.djangoproject.com/ticket/10405

but it's hard to be sure without the traceback.

As an aside, what you are doing sounds a bit dodgy.  If I understand what
you are saying, you are adding a field to the Satchmo-provided Product
model?  After doing that you mention restarting Apache but don't say
anything about getting the change you have made to the model reflected in
the database.  If you have not done anything to get the new field added to
the database table as well, then even if you get past this error you are
going to run into trouble when any code tries to access that model, since in
the database it won't have the field you have added.

Have you tried asking on the Satchmo user's group for guidance on
accomplishing whatever you are looking to do without modifying their
provided models?  In general changing the models provided by an external
project seems like a bad idea.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to