I knew it was something simple! :)
Thank you, Diez!

After fixing the typo in the table name, everything works.

Best regards,
Artem.

On Jan 11, 7:00 pm, "Diez B. Roggisch" <[email protected]> wrote:
> Artem Marchenko schrieb:
>
> > Hi
>
> > I am trying to create two tables linked by a simple one-to-many
> > relationship. Following the David's advice (
> >http://groups.google.com/group/turbogears/browse_thread/thread/ea7da1...
> > ) I was able to make SQLAlchemy link two classes, but I can't make it
> > actually create tables with the ForeignKeys. Whenever I am trying to
> > do it (already on the metadata.drop_all step) I get
> > ----------------
> > hema.py", line 845, in column
> >     "foreign key" % tname)
> > sqlalchemy.exc.NoReferencedTableError: Could not find table
> > 'worpairtopics' with
> >  which to generate a foreign key
> > ----------------
>
> Naming the table correctly helps tremendously when declaring foreign
> keys... :)
>
> Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to