django – query the database

to execute a query on the application database:

django-admin dbshell select * from ....