user object exists django user.objects.exists code example Example: check django object exists modelName.objects.filter(pk='id').exists()