It had just slipped my mind that syncdb won't sync modifications to models. Won't forget it now hopefully.
But why then do I still see some output from manage.py sql command? Also, the sql being output is syntactically wrong. Regards, CM. On Jul 6, 10:41 am, Luc Saffre <[email protected]> wrote: > I often got confused because when a modification in my models.py causes > it to raise an ImportError (for example you try to import a non-existing > module from your module.py), then several parts of Django (including > syncdb) simply act as if your application wasn't installed, without any > warning. > Maybe that's also your problem? > Luc > > On 6.07.2009 8:17, chefsmart wrote: > > > Hi, > > > I have been working on an app for some time now. I have been using the > > Django svn trunk. > > > I have a lot of data in the database. Today I modified a couple of > > fields and added a couple of fields (date and char fields) to three of > > my models. No fields have been removed from the original model > > definitions. > > > When I do "python manage.py sql myapp" the output shows some > > inconsistent sql that is syntactically wrong. I thought this may > > simply be a jumbled string output problem, so I ran syncdb anyway. > > However, syncdb is not doing anything. I mean no messages, no error > > outputs, nothing. It just simply exits with a blank line output. I > > checked my database (mysql) and there were no changes made. So syncdb > > is not doing anything, even though the sqlall output shows it wants to > > do a lot of sql commands. > > > Moreover, the manage.py sql myapp command shows that syncdb wants to > > drop and reconstruct tables that I have not modified, and that are not > > related to the modified models in any way. > > > What could be going on? > > > Regards, > > CM --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

