importować ObjectDoesNotExist

from django.core.exceptions import ObjectDoesNotExist
Vast Vicuña