Skip to main content

report_using_incompatibility

Report arguments incompatible with 'using'.

def report_using_incompatibility(
connection: Any = None,
fail_silently: boolean = False,
auth_user: string = None,
auth_password: string = None
) - > null

Report arguments incompatible with 'using'.

Parameters

NameTypeDescription
connectionAny = NoneA database or backend connection object that is prohibited when a specific 'using' alias is specified.
fail_silentlyboolean = FalseA flag to suppress errors which is not supported when routing via the 'using' parameter.
auth_userstring = NoneThe username for authentication, which should instead be configured in the MAILERS OPTIONS setting.
auth_passwordstring = NoneThe password for authentication, which should instead be configured in the MAILERS OPTIONS setting.

Returns

TypeDescription
nullNothing is returned; the function only performs validation and raises exceptions if incompatible arguments are provided.