Ошибка после
# ./manage.py makemigrations /usr/bin/env: ‘python\r’: No such file or directory
Решение - через vim настроить file format - ff=unix:
# vi manage.py :set ff=unix :wq