Error Exception Handling in Django/Python
Table of contents
No headings in the article.
Get unlimited access to all of Medium for less than $1/week.
Just now
Hi Python/Django Developers, which two most popular exceptions.py
do you use in your code?
Me: ObjectDoesNotExist
and IntegrityError
!
The former helps me bypass object instances that don’t exist in the database which clients may have sent requests
for while the latter helps me manage multiple entries errors admin/clients may have added in database column/row.
Kindly state yours and why you use it. Let’s go! :D