how to run a migration based on environment Django code example Example: django make migrations $ python3 manage.py makemigrations $ python3 manage.py migrate