python

Database migration commands in django

If you are looking to migrate your database in Django, there are a few commands you can use. These commands will help you migrate your data from one database to another, as well as help you keep your data in sync between your development and production databases. In this article, we will cover the most common database migration commands in Django.

//TO CREATE MIGRATIONS
python manage.py makemigrations

//TO APPLY MIGRATIONS
python manage.py migrate
Was this helpful?