[Answer]-How to resolve Django tutorial migration error?

1👍

Well, actually this is not an error. Django is telling you that it needs a default value for choice_text to apply in the current rows stored in the database. Seems that you created the database table (probably with syncdb), added some data and now you made the choice_text field mandatory. So Django must fill empty instances of choice_text in the database with the new default value you are being asked. Make sense?

Just choose option 1) and enter a value to apply in choice_text for all the current rows in the database.

I hope it helps.

Leave a comment