understanding try except python/django
I need your help with understanding try-except python/Django. so I have this function: def submit_dept_head_application(request, application_id): cv = request.FILES[‘cv’] letter = request.FILES[‘letter’] candidate_id = request.data[‘candidateId’] rank_id = request.data[‘requestedRankId’] application_state = { ‘candidate_id’: candidate_id, ‘rank_id’: rank_id, ‘cv_filename’: cv.name, ‘letter_filename’: letter.name, } creator = Profile.objects.get(user=request.user.id) department = creator.department applicant = Profile.objects.get(user=candidate_id) applicant_profile_id = applicant.id rank = Rank.objects.get(id=rank_id)… Read More understanding try except python/django