Django has a shell tool to debug or do something others,you can do like this:
cd ~/YOUR-PROJECT
python manage.py shell
But the unit testing is more better than that,Django has a buildin unit testing framework ,it is a standard way that django recommend