updated to use manage.py instead of shell script