[Answered ]-Django: What are the downsides of manually altering model fields with SQL?

1šŸ‘

āœ…

Downsides ? If you are talking about simple project, then there arent any. Do whatever pleases you :). If the project grows bigger, then read next paragraph šŸ˜›

If it is larger project and has other contributors (and even if it does not), you need to version control it. And for this reason, manual changes are BAD. Cause you just cant go back to earlier version without changing the databaseā€¦. BUTā€¦.

But since you are talking about doing this manually, i feel, that i need to point out the existance of http://south.aeracode.org/

Which is created exactly for the reason that you, perhaps, should not be doing this manually.

BTW. im trolling here and talking tongue in cheekā€¦ donā€™t take this post 100% seriously šŸ˜›

šŸ‘¤Odif Yltsaeb

1šŸ‘

Django South is the solution to this problem. It is a ā€œmust haveā€ app to include (and here Iā€™m going to disagree with @OdifYitsaebā€™s answer) in ANY project, not just large ones. It is so simple and powerful that you are essentially creating more work for yourself if you donā€™t use it even in a tiny personal project.

Itā€™s soon to be included into Django core in (I beleive) 1.7 as well, so itā€™s a good idea to get familiar with it now.

šŸ‘¤ptr

Leave a comment