api.models.doesnotExist: dopasowanie zapytania nie istnieje
Use .filter() instead of .get() or use
try:
user = UniversityDetails.objects.get(email=email)
except UniversityDetails.DoesNotExist:
user = None
MitchAloha