Commit 411e77e1 by ichuang

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

parent d2c1df88
...@@ -186,6 +186,7 @@ def get_module(user, request, location, student_module_cache, position=None): ...@@ -186,6 +186,7 @@ def get_module(user, request, location, student_module_cache, position=None):
) )
# pass position specified in URL to module through ModuleSystem # pass position specified in URL to module through ModuleSystem
system.set('position', position) system.set('position', position)
system.set('DEBUG',settings.DEBUG)
module = descriptor.xmodule_constructor(system)(instance_state, shared_state) module = descriptor.xmodule_constructor(system)(instance_state, shared_state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment