manage.py syncdb won't add new fields to the database if the table already exists. You'll have to do this yourself. See manage.py sqlall for some help.
Otherwise, if you have: user = models.ForeignKey(User), then look for a field named user_id in your table. -------- Nathan Ostgard On Jul 18, 9:57 pm, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > I have a model with a field models.ForeignKey(), with manage.py > validate I check if my code are right, then run manage.py syncdb. When > I was checking the tables generated I don't see any foreign key > created? Is there something wrong? where should I check? > > I am using django 0.96, mysql 5 on winxp > > Thanks > james --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---