title: Calling a function into an other function in Python (Django)
body: <p>I'm trying to call a function into a function in django but I keep getting: </p>
  
  <pre><code>The view app.views.function1 didn't return an HttpResponse object. It returned None instead.
  </code></pre>
  
  <p>My views are:</p>
  
  <pre><code>def function1(request):
      [some api calls] 
      #Once this process is done I want to call my second function
      function2()
  </code></pre>
  
  <p>and then I have </p>
  
  <pre><code>def function2(request):
  </code></pre>
  
  <p>How you call an other function in Django/Python easily </p>
  
  <p>p.s. These functions could just be one, I just want to divide them to have my code more readable and have one function do only one thing.</p>