record_exception(log,"Unable to load module during ajax call")
if'text/html'inrequest.accepted_types:
ifaccepts(request,'text/html'):
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 instance during ajax call")
if'text/html'inrequest.accepted_types:
ifaccepts(request,'text/html'):
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"}))