Executing a Django Shell Command from the Command Line Executing a Django Shell Command from the Command Line python python

Executing a Django Shell Command from the Command Line


Pipe it ;)

echo "print('hello world')" | python manage.py shell


Not like that. But it is easy enough to write a standalone script for Django.