If you want to inspest what queries exactly Django ORM sends to the PostgreSQL, you can do it with postgres logging.
The first step is to enable logging. Add
to the file:
sudo vim /etc/postgresql/9.4/main/postgresql.conf
Then you are able to see raw SQL queries with command:
sudo tail -f /var/log/postgresql/postgresql-9.4-main.log