Django run sql query on the command line

Run SQL query using Django database settings. Pipe commands to dbshell (PostgreSQL, MySQL, SQLite, Oracle).

cat ~/query.sql | python manage.py dbshell
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment