Prova detta
# settings.py
DATABASES = {
'default': {
'ENGINE': '...',
'OPTIONS': {
'init_command': "SET log_error_verbosity TO 'verbose'",
},
}
}
Testfråga
SELECT setting FROM pg_settings WHERE name = 'log_error_verbosity'