sqldjangooracle-databaseunit-testingdjango-testing

Django: how to see the SQL query when running tests?


One of my django application unit test fails with

DatabaseError: ORA-00942: table or view does not exist

I would like to see actual SQL query that caused this error. Do you know how to achieve that?


Solution

  • The best solution I found so far is debugsqlshell custom django management command provided by django-debugtoolbar.