Exception raised when the relational integrity of the database is affected, e.g. a foreign key check fails, duplicate key, etc. (Please add a snippet of code explaining where to find IntegrityError so that developers don't have to search through their file system to find it.)