On Dec 20, 2:50 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote:
On 12/20/06, stoKes <[EMAIL PROTECTED]> wrote: > However, running `python manage.py syncdb` doesn't create table > `blogs_tag_blog` for the many to many relation. Am I missing a > particular column to finish the relation or is it a possible bug?My initial guess would be that there is an old version of the Tag table in your database - one that was created when you didn't have the m2m relation. When syncdb looks at your model, it sees that the Tag table already exists, so it ignores that table (thereby ignoring the the m2m table). 'sqlall' doesn't pay any attention to the existing tables - it just tells you what would be created if you were starting from scratch. Hence, it correctly identifies the need for the m2m table. If you start with a completely clean database does the problem still occur? Yours, Russ Magee %-)
Ah there it is :) Thanks for the explanation that will come in handy during development :) -Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---