Opened 6 years ago

Closed 6 years ago

#17907 closed Uncategorized (duplicate)

"Something's wrong with your database installation" error message in DEBUG mode.

Reported by: anonymous Owned by: nobody
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Daniel Hepper Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In django/contrib/admin/ line 1131, a IncorrectLookupParameter exception is caught and the following error message is returned:

"Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user."

IMHO, the exception should be reraised if settings.DEBUG is True.

The error message is to general to find the cause of the error. In my case, I had a bug in a SimpleListFilter subclass, which I could only find by setting a breakpoint in the Django code.

Attachments (1)

invalid_setup_patch.diff (769 bytes) - added by Daniel Hepper 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Daniel Hepper

Attachment: invalid_setup_patch.diff added

comment:1 Changed 6 years ago by Daniel Hepper

Cc: Daniel Hepper added

comment:2 Changed 6 years ago by Aymeric Augustin

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #17828.

Note: See TracTickets for help on using tickets.
Back to Top