Thanks for that, I'll take a look at it. I just thought given manage.py has the ability to inspectdb, it shouldn't be that much of a stretch to just check if the model and DB schema match.
Cheers 2009/8/6 kmike <kmik...@googlemail.com>: > > That's a question about database migration. Django doesn't have built- > in solution for that. > Try using South (http://bitbucket.org/andrewgodwin/south/overview/), > it is a very good db migration app. I suggest using development > version because (based on my experience) it is more robust than last > official release (0.5). > > On 5 авг, 18:28, Sam Lai <samuel....@gmail.com> wrote: >> I hope this hasn't been asked before; had a quick look through the >> archives and docs but couldn't find anything. >> >> Is it possible to get django (e.g. via manage.py) to CHECK if the db >> schema and model match? I don't want it to change anything, just to >> tell me if there is a mismatch, and what that is. >> >> I thought syncdb did this, but it doesn't seem to. I think this would >> be quite useful to have, and could pre-empt errors later on when >> non-existent fields are used in views etc. >> >> Sam > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---