From 411e77e19d2d7a4c31ea1910dfb0e1855f97b1b2 Mon Sep 17 00:00:00 2001 From: ichuang Date: Thu, 9 Aug 2012 19:03:11 -0400 Subject: [PATCH] ModuleSystem should get its DEBUG set from settings.DEBUG in module_render --- lms/djangoapps/courseware/module_render.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lms/djangoapps/courseware/module_render.py b/lms/djangoapps/courseware/module_render.py index 1397b881f2..4910488af2 100644 --- a/lms/djangoapps/courseware/module_render.py +++ b/lms/djangoapps/courseware/module_render.py @@ -186,6 +186,7 @@ def get_module(user, request, location, student_module_cache, position=None): ) # pass position specified in URL to module through ModuleSystem system.set('position', position) + system.set('DEBUG',settings.DEBUG) module = descriptor.xmodule_constructor(system)(instance_state, shared_state)