简体   繁体   中英

How to access Django Test database to debug?

Django tests are very helpful. However, when it's time to debug it's more complicated.

I would like to:

  • The test database does not disapear at the end of the tests suite to analyse it
  • Be able to read in this database, using my graphical DB Manager (Navicat, pgAdmin, etc.) (which is more friendly than command line)

How to do this? Thanks!

The django-test-utils app includes a Persistent Database Test Runner to achieve this. I haven't tested the app myself though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM