title: Sending Multiple Dictionaries over to a template in django
body: <p>So, I'm a little new to django and templating and I'm not sure how to go about doing this. I have a file called <strong>services.py</strong> in my project structure where I have several functions that perform authentication, make a call to an API, return the data, parse them, and enter them into several dictionaries.  The API loooks like this :</p>
  <pre><code>{
  CheckName: &quot;AppPools&quot;,
  Description: &quot;DefaultAppPool&quot;,
  GroupName: &quot;Server1&quot;,
  Links: [
  {
  description: &quot;Recycles the DefaultAppPool app pool.&quot;,
  link: &quot;Recyle/Server1/DefaultAppPool&quot;,
  title: &quot;Recycle&quot;
  },
  {
  description: &quot;Stops the DefaultAppPool app pool.&quot;,
  link: &quot;Stop/Server1/DefaultAppPool&quot;,
  title: &quot;Stop&quot;
  },
  {
  description: &quot;Starts the DefaultAppPool app pool.&quot;,
  link: &quot;Start/Server1/DefaultAppPool&quot;,
  title: &quot;Start&quot;
  }
  ]
  },
  {
  CheckName: &quot;AppPools&quot;,
  Description: &quot;FinancialServices&quot;,
  GroupName: &quot;ST0PWEB12&quot;,
  Links: [
  {
  description: &quot;Recycles the FinancialServices app pool.&quot;,
  link: &quot;Recyle/Server2/FinancialServices&quot;,
  title: &quot;Recycle&quot;
  },
  {
  description: &quot;Stops the FinancialServices app pool.&quot;,
  link: &quot;Stop/Server2/FinancialServices&quot;,
  title: &quot;Stop&quot;
  },
  {
  description: &quot;Starts the FinancialServices app pool.&quot;,
  link: &quot;Start/Server2/FinancialServices&quot;,
  title: &quot;Start&quot;
  }
  ]
  },
  </code></pre>
  <p>There is a hierarchy here:</p>
  <pre><code>CheckName1
       GroupName1
           Description1
           Description2
       GroupName2
           Description3
           Description4
  CheckName2
       GroupName1
           Description1
           Description2
       GroupName2
           Description3
           Description4
  </code></pre>
  <p>I've stored the data in dictionaries with the following format:</p>
  <p>The function called <strong>groupsInChecks</strong> creates a dict with the following format:</p>
  <pre><code>{CheckName1:(GroupName1,GroupName2, GroupName3), CheckName2:(GroupName4,Grouonam5, GroupName6)}
  </code></pre>
  <p>The function called <strong>serviesInGroups</strong> creates a dict with the following format:</p>
  <pre><code>{Groupname1:(Description1, Description2, Description3), GroupName2:(Description5. Description6, Description7)}
  </code></pre>
  <p>then they return the dicts, which have nested as values.</p>
  <p>I have my view in <strong>views.py</strong>:</p>
  <pre><code>def app_status(request):
  
      data=ntlmAuthGetRequest() #does api request gets json data
      groups=groupsInChecks(data) #parses into first dict
      services=serviesInGroups(data) #parses into second dict
      return render(request, 'application_status/app_status_page.html') #this is where I'm lost, how do I pass this to the html file!
  </code></pre>
  <p>Additionally, in the html file I need to dynamically create a table with that data. I'm not sure how to do that yet either.</p>
  <p>Any tips would be welcome.  Also how do I import my services.py into my views for use.</p>