Zkuste toto
# settings.py
DATABASES = {
'default': {
'ENGINE': '...',
'OPTIONS': {
'init_command': "SET log_error_verbosity TO 'verbose'",
},
}
}
Testovací dotaz
SELECT setting FROM pg_settings WHERE name = 'log_error_verbosity'