Error Exception Handling in Django/Python

Table of contents

No heading

No headings in the article.


Write

Ejikeme Blaise

Get unlimited access to all of Medium for less than $1/week.

Become a member

Ejikeme Blaise

Ejikeme Blaise

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

#django #json #RestAPI #python #challange