Opened 12 years ago

Closed 12 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: dev
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

Description

In django/contrib/admin/options.py 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 12 years ago.

Download all attachments as: .zip

Change History (3)

by Daniel Hepper, 12 years ago

Attachment: invalid_setup_patch.diff added

comment:1 by Daniel Hepper, 12 years ago

Cc: Daniel Hepper added

comment:2 by Aymeric Augustin, 12 years ago

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #17828.

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