python print sql in shell_plus

Shell
python manage.py shell_plus --print-sql
Source

Also in Shell: