On 2007-08-22 04:36:12 -0600, b3n <[EMAIL PROTECTED]> said:

> 
> I got Django to create the table by running 'reset' and then re-
> running 'syncdb'.
> 
> manage.py reset
> mange.py syncdb
> 
> I thought I read somewhere that syncdb should add the table anyway?
> Bug?

No, syncdb only creates new tables for models that are new.  So it 
won't pick up the m2m table since it is a field to a model.  This is 
something that a schema evolution solution will fix.

> 
> It's a bit annoying having to repopulate the data.
> 
> If I added the join table manually would Django still work? Or does it
> need to "know" about the table?

Yes, it would work fine.  Django is expecting it and doesn't find it 
and throws that error about not finding it.  Until a schema evolution 
solution gets merged into trunk this is the only way around the problem.

> 
> 
> 
> 
-- 
Brian Rosner
http://www.brosner.com/blog



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to