It never modified tables? But in the tutorial, you "accidentally" omit the __unicode__ method and then you add it in later, and that works. Was the __unicode__ method simply an attribute of the Python and not the database, and that's why it works?
Also, shouldn't sqlclear appname drop the tables, allowing me an opportunity to reestablish the tables? Sqlclear didn't clear the tables, even though it printed appropriate DROP TABLE statements, it just didn't issue the statements. Thanks. On Dec 25, 1:58 pm, "Chris Czub" <chris.c...@gmail.com> wrote: > syncdb has never been able to modify existing models. In order to get > some functionality like that, look into > django-evolution:http://code.google.com/p/django-evolution/ > > -Chris > > On Thu, Dec 25, 2008 at 1:11 AM, Fluoborate <motoy...@gmail.com> wrote: > > > Running the command: > > python manage.py syncdb > > Used to add tables and modify tables if necessary. I don't remember if > > it ever dropped tables. It was great, I would modify models.py and > > syncdb and it would just work. Then something changed, and I don't > > know why. > > > Now, syncdb never modifies or drops tables. It can still add tables. > > This is very annoying. What's worse, this command: > > python manage.py sqlclear appname > > Doesn't do anything at all. > > > What is going wrong? Has anyone else seen this? > > > Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---