Database & Migrations – Django Web Development With Python 8
Welcome to Part 8 of our Django web development with Python tutorial.
Remember how when you create a new app, the first thing you need to do is install it? Whenever you define new models, you want to migrate. If you are familiar with older versions of Django, the old syncdb command is deprecated. Nowadays, first you will do
python manage.py makemigrations
Text-based tutorial and sample code: