raise an NoReverseMatch exception with an argument string "Error importing '%s': %s.", where '%s' is replaced with lookup_view and e, respectively.
raise NoReverseMatch ( "Error importing '%s': %s." % ( lookup_view , e ) )