django know if db objects exists and ge +t object code example Example: check django object exists modelName.objects.filter(pk='id').exists()