Is there a recommended way to override settings for the live server? Normally I'd use @override_settings(DEBUG=True) so I can see tracebacks while debugging, but had to settle for this:
def before_scenario(context, scenario):
if "DEBUG" in scenario.tags:
from django.conf import settings
settings.DEBUG = True
(and corresponding after_scenario())
It works, but is there a better way?
Is there a recommended way to override settings for the live server? Normally I'd use
@override_settings(DEBUG=True)so I can see tracebacks while debugging, but had to settle for this:(and corresponding after_scenario())
It works, but is there a better way?