I have seen that actually, after asking in stackoverflow.com, there might be a lot of equivalent questions.. But I got the box where to write already and my google searches are not any better. (I was testing blekko.com for a while.. as a search engine.. give it a try)
Back to the question:
If I have: models.py
class someclass(models.Model):
title = models.CharField(max_length=200)
And I run all the stuff till the site is working...
Now I do (models.py):
class someclass(models.Model):
title = models.CharField(max_length=200)
sub_title = models.CharField(max_length=200)
And I use sqliteman or phpmyadmin to add a column named 'sub_title' which will get some default value, namely NULL. (regardless of some django constrains, like not NULL)
Would I brake something within django?
I guess I would always have the possibility to dump the 开发者_如何转开发db and read it back. Not sure yet how to do it in django in a clean way but there should be a way. Is there such a way?
My question stops here.
But as additional hint, I did check south which didn't work for me 'right out of the box', in particular for an existing project. Before to get into some other problems, I realized that I only need columns updates while developing the site.
I present to my customer (this is at present a free/free no money situation) the stages of development... and I do not want to reset the DB at every version.
精彩评论