shell commands execution in python and output stored in django database code example Example: how to use django shell $ ./manage.py shell_plus --bpython