In this fourth part we need to create a super user and make migrations. Once we have a username and a password we can connect to our admin panel and create todo items.
Step 1 – Make migrations and migrate
Before we can do anything in our admin panel we have to make migrations and migrate. This will create the tables in the database. This is easily done by running the following command in the terminal:
ddnro:~/workspace/todoapp $ python3 manage.py makemigrations Migrations for 'todo': todo/migrations/0001_initial.py - Create model TodoItem