title: Django server side application
body: <p>I've been trying to learn Django, but I'm still pretty much a web dev newbie, so please bear with me. Maybe something is just fundamentally wrong with this question...</p>
  
  <p>For example, lets say some data exists in a JSON stream that is updated constantly. I'm trying to capture bits of that data and store it in my database, and it's displayed when I visit my Django built page. I guess there's two ways to do this:</p>
  
  <ol>
  <li><p>In my views.py, it checks the data source, updates the database, and displays the information through a html file. This just seems like it's not the right way to do it. The source would be polled every time the page is viewed.</p></li>
  <li><p>I would think the correct way to do it is have an application on the server that polls the data source every 1 minute or whatever and updates the database. The views.py only displays information from the database. </p></li>
  </ol>
  
  <p>Am I even thinking about this correctly? I haven't found any information/examples on how to write the application that would sit on the server and constantly update the database.</p>
  
  <p>Thanks!!</p>