Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Forms More on Models Multiple Choice and True/False Questions

Sameer Zahid
Sameer Zahid
5,967 Points

Can we not do migrations for multiple models at the same time?

At around 2:00 in this video Kenneth had created two models, he then commented out one of them and made the migrations for the other one. Then he un-commented that model and made the migrations for it. Before doing so he said that he was about to do something that he told us not to. I didn't understand what he meant by that.

Why was there a need to do the migrations separately? Or is there something else that I've missed?

Really loving the series so far, and it's just this bit that has me confused, so I'll really appreciate an explanation for this.

Thanks!

1 Answer

Alx Ki
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alx Ki
Python Web Development Techdegree Graduate 14,822 Points

Hi, Sameer Zahid !

I guess it is mostly about "explicit is better than implicit" and "readability counts".

So if you want to take a look at your migrations you can track the changes made with each migration in explicit and more readable form.

Sameer Zahid
Sameer Zahid
5,967 Points

Thank you, I understand the completely.