django makemigrations core code example
Example 1: django make migrations
$ python3 manage.py makemigrations
$ python3 manage.py migrate
Example 2: python django shell command
$ python manage.py shell
...
>>> execfile('myscript.py')
$ python3 manage.py makemigrations
$ python3 manage.py migrate
$ python manage.py shell
...
>>> execfile('myscript.py')