title: Django calling an another function inside from a view function
body: <p>The views.py somthing like this</p>
  
  <pre><code>def getFormValues(request):
  if ('mobile_a' in request.GET and request.GET['mobile_a']) and ('mobile_b' in request.GET and request.GET['mobile_b']):
      mobile_a = request.GET['mobile_a']
      mobile_b =request.GET['mobile_b']
      # calling the mark calculation function
      return calculateMark(mobile_a, mobile_b)
  else:
      message ='You submitted an empty form.'
      return HttpResponse(message)
  </code></pre>
  
  <p>Here I am calling a function(calculateMark) which will calculate a marking. In the end of the calculateMark function I have something like this</p>
  
  <pre><code>if (tech_mark_a == 0 and tech_mark_b == 0):
      mobile_a_infos = TechSpecificationAdd.objects.filter(tech_variables)
      return render_to_response('degrees_result.html', {'mobile_a': tech_mark_a, 'mobile_b': mobile_b}, mobile_a_infos)
  
  elif (tech_mark_a &gt; 0 and tech_mark_b &gt; 0):
      return render_to_response('degrees_result.html', {'mobile_a': tech_mark_a, 'mobile_b': mobile_b})
  </code></pre>
  
  <p>The Problem is when I am submitting an empty form It's showing the message as getFormValues(). But when I submit something on the form it's showing an error The view <strong>MarkCalculation.views.getFormValues didn't return an HttpResponse object.</strong> 
  How can I solve the problem? Thanks in advance.</p>