code: def error_redirect(self, errormsg='', errorlog=''):
          '''
          Shortcut for redirecting Django view to LTI Consumer with errors
          '''
          from django.shortcuts import redirect
          self.lti_errormsg = errormsg
          self.lti_errorlog = errorlog
          return redirect(self.build_return_url()f error_redirect(self, errormsg='', errorlog=''):
          '''
          Shortcut for redirecting Django view to LTI Consumer with errors
          '''
          from django.shortcuts import redirect
          self.lti_errormsg = errormsg
          self.lti_errorlog = errorlog
          return redirect(self.build_return_url())
docs: Shortcut for redirecting Django view to LTI Consumer with errors