record_exception(log,"Unable to load module during ajax call")
if'text/html'inrequest.accepted_types:
returnrender_to_response("module-error.html",{})
else:
response=HttpResponse(json.dumps({'success':"We're sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible"}))
record_exception(log,"Unable to load module during ajax call")
response=HttpResponse(json.dumps({'success':"We're sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible"}))
record_exception(log,"Unable to load module instance during ajax call")
if'text/html'inrequest.accepted_types:
returnrender_to_response("module-error.html",{})
else:
response=HttpResponse(json.dumps({'success':"We're sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible"}))
<h1>There has been an error on the <em>MITx</em> servers</h1>
<p>We're sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible. Please email us at <ahref="mailto:technical@mitx.mit.edu">technical@mitx.mit.edu</a> to report any problems or downtime.</p>