mysql - Why Django does not "really" support automatic table update? -
Recently I am trying to learn web development in Django and I am very happy about it ... < / P>
But, one thing is really upset - especially when you get ideas about 'simplicity' philosophy behind the desensgo.
It is that updating a table in the Django is really far from simplicity because I am just experienced
For example, like my actual case, I enter the beginning Skipping a slug field for the titles left but after some time, I wanted to add a slug column to the table, just like everyone else - which can expect a cheater in the deeggo, I created the python manage.py syncdb
Command cord And of course it does not work ... After a little search I found "I need to manually add a new column" in the debash shell command line ("mysql is using the database").
I do not know why, but I think that this is really a fun thing I have never expected, when I saw how easy it is to create a web site in the DJ. Think? Or If you have any other solution or anything else, can you please share?
Thank you in advance ...
Do not mind opening me in the deb But what I have to know, this is the reason why this happens in the Denggo ...
Database migration is a goal for the Django project, but it was a difficult subject that it did not end in many versions earlier. Many migration projects have emerged to fill the gap, and each one resolved the difficult problem in different ways. Rather than trying to create an additional migration solution, or someone has emerged as an 'official' status, or at least a single preferred solution, before maturing, the Djangogo team decided to develop just those solutions For more information about those third party migration tools, see the answers for
Comments
Post a Comment