title: How do you call a view from one app in another
body: <p>I have two apps the posts and home..How do I call one of the functions from my posts app in my home app. That way all information would be displayed on my home.html page. </p>
  
  <p>I want a way to make a post, see a list of posts on the home.html page. I don't want to have to go to another url, I want to keep the url at /home/ </p>
  
  <p>home/views.py</p>
  
  <pre><code>from posts import views
  from posts.models import Post
  from posts.views import posts_list
  
  # TODO: Found a hacky way to display all posts on home page
  
  
  def home(request):
      # TODO: If the user is not authenticated then don't show the home page,
      # but instead show soe other page reporting the error. (Maybe just the login page).
  
      posts_list(request)
      return render(request, 'home.html')
  </code></pre>
  
  <p>posts/views.py</p>
  
  <pre><code>def posts_list(request):
      # return HttpResponse("&lt;h1&gt; List a posts. &lt;/h1&gt;")
      # TODO: Privacy stuff
      queryset = Post.objects.all()
      context = {
          "object_list": queryset,
          "user": "username"
      }
      return render(request, "home.html", context)
  </code></pre>