Index: django/contrib/admin/options.py
===================================================================
--- django/contrib/admin/options.py	(Revision 17743)
+++ django/contrib/admin/options.py	(Arbeitskopie)
@@ -1134,7 +1134,9 @@
             # parameter via the query string. If wacky parameters were given
             # and the 'invalid=1' parameter was already in the query string,
             # something is screwed up with the database, so display an error
-            # page.
+            # page if settings.DEBUG is False.
+            if settings.DEBUG:
+                raise
             if ERROR_FLAG in request.GET.keys():
                 return SimpleTemplateResponse('admin/invalid_setup.html', {
                     'title': _('Database error'),
