ModuleSystem should get its DEBUG set from settings.DEBUG in module_render

This commit is contained in:
ichuang
2012-08-09 19:03:11 -04:00
parent d2c1df88d1
commit 411e77e19d

View File

@@ -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)