api.models.doesnotexist: a consulta correspondente não existe
Use .filter() instead of .get() or use
try:
user = UniversityDetails.objects.get(email=email)
except UniversityDetails.DoesNotExist:
user = None
MitchAloha