title: Django - two views, one page
body: <p>Say we have a Django page that shows a list of items and allows the user to fill in a form to add to the items (let's call the items posts).</p>
  
  <p>What I want: 
  The URL for this page refers to a view. The view calls two other views (called "sub-view" hereon), then each sub-view renders its section and returns the results. The main view then joins the results of the sub-views and returns that.</p>
  
  <p>Ideally, I would have a quick javascript check on the page - if javascript is enabled, the submit button for the form will be "Ajax'd" to the sub-view that deals with form adding, and the page will be updated that way. I suppose I could trigger a request to refresh the list of posts afterwards too or something.</p>
  
  <p>So how do I concatenate the two sub-views in the main view? Is this possible?</p>
  
  <p><strong>UPDATE</strong>: "sub-view" is a term I made up. What I want is a view that can be called either by Ajax directly to return something meaningful, or from another view (which I'll call the "main view"). If called by this "main view", how does the main view handle returning the data from multiple "sub-views"?</p>
  
  <p>Is there a simple way to do this? Is this an <em>appropriate</em> way to think about multiple views in a page? Should I care about separation of responsibilities?</p>