from the django docs https://docs.djangoproject.com/en/1.4/topics/testing/#other-test-conditions
Seems not possible to override this at this moment, even with https://docs.djangoproject.com/en/1.4/topics/testing/#django.test.utils.override_settings
the only way to see the debug information when it's returned a 500 response is by logging it.
edit: i've found a way to set DEBUG = True
in my selenium tests.
In my subclass, i override the constructor and change the setting.
from django.conf import settings
class SeleniumLiveServerTestCase(LiveServerTestCase):
def __init__(self, *args, **kwargs):
super(SeleniumLiveServerTestCase, self).__init__(*args, **kwargs)
if settings.DEBUG == False:
settings.DEBUG = True
it's ugly but works!