check if object is in database django code example Example: check django object exists modelName.objects.filter(pk='id').exists()