C
C
Cyrus2015-07-27 12:03:21
Django
Cyrus, 2015-07-27 12:03:21

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

2 answer(s)
R
Roman Kitaev, 2015-07-27
@Novakuz

Yes.

K
khmlnk, 2015-07-27
@khmlnk

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 your question

Ask a Question

731 491 924 answers to any question