How to handle Django IntegrityError when working with PostgreSQL A gotcha about handling IntegrityError when dealing with PostgreSQL