This is a follow up question to this:
Postgres: More verbose error message: I am missing the table name
PostgreSQL 9.6 improved error messages with version 9.6.
Try this
# settings.py DATABASES = { 'default': { 'ENGINE': '...', 'OPTIONS': { 'init_command': "SET log_error_verbosity TO 'verbose'", }, } }
Test query
SELECT setting FROM pg_settings WHERE name = 'log_error_verbosity'