Categories
What is the best way to make changes to the DB/model.py?
Good afternoon, tell me how to do it correctly if I need to add fields to the database of a working project on django. Is it enough to add fields to model.py and migrate?
Answer the question
In order to leave comments, you need to log in
Yes.
1. do: python manage.py makemigrations name_app 2. do: python manage.py migrate name_app
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question