БД
Теперь, когда наша новая модель создана, нам нужно активировать ее. Двигаясь вперед, всякий раз, когда мы Чтобы создать или изменить существующую модель, нам потребуется обновить Django в два этапа:
1. First, we create a migrations file with the makemigrations command. Migration
files create a reference of any changes to the database models which means we
can track changes–and debug errors as necessary–over time.
2. Second, we build the actual database with the migrate command which executes
the instructions in our migrations file.
(mb) $ python manage.py makemigrations posts
(mb) $ python manage.py migrate