title: Integrating Django tutorial example Polls app and django-registration
body: <p>I'm learning Django on Ubuntu 13.04, Python 2.7, Django 1.5, Postgres 9.2, 
  Bootstrap 3.0. I'd like to achieve a combination of the tutorial example Polls app with django-authentication.</p>
  
  <p>As my first effort I got the Polls app working from the <a href="https://docs.djangoproject.com/en/1.5/intro/tutorial01/" rel="nofollow noreferrer">Django 1.5 tutorial</a>. I then installed <a href="https://django-registration.readthedocs.org/en/latest" rel="nofollow noreferrer">django-registration 1.0</a> and <a href="https://github.com/macdhuibh/django-registration-templates" rel="nofollow noreferrer">these templates</a> to make it work. I chose that package for authentication as opposed to <a href="http://django-allauth.readthedocs.org/en/latest/" rel="nofollow noreferrer">django-allauth</a> as a result of <a href="https://stackoverflow.com/questions/19026916/simplest-django-authentication-package-to-use-as-of-oct-2013">my question on authentication framework</a>.</p>
  
  <p>Now I want to integrate Polls and django-registration to record a set of results per user.  After the poll results have been collected the admininstrator uses Django Admin interface to run a script to analyse the results (e.g. compute some statistics) and send an email to a subset of all users.</p>
  
  <p>I briefly looked at two existing projects that looked like could get me there out of the box.</p>
  
  <ol>
  <li><p><a href="http://lightbird.net/dbe2/questionnaire.html" rel="nofollow noreferrer">Light Bird's Questionnaire App</a> was too complicated using a custom library of modular class based views. I'd like to keep it as simple as possible, using as much of out-of-the-box Django 1.5 functionality as possible for ease of maintenance and initial design.</p></li>
  <li><p><a href="http://pinaxproject.com/" rel="nofollow noreferrer">Pinax web framework on top of Django</a>, although a great idea, seems to be stuck in dark ages of 2011 with latest code supporting only Django 1.4 and Bootstrap 2.x. Starter projects don't look that useful and documentation isn't flash either.</p></li>
  </ol>
  
  <p>Based on the above it looks like I'll have to do the integration of Polls and registration manually. At first pass I was thinking roughly the following:</p>
  
  <ul>
  <li>The poll &amp; choice could be simplified down to just a numeric answer to a question.</li>
  <li>At database level we would need a separate table.</li>
  <li>The primary key would be the userid.</li>
  <li>Each column would store one answer per.</li>
  <li>I'm guessing this would need a <code>class PollsResults</code> in <code>model.py</code> that would include defining the primary key as <code>User</code>, which should exist via django-registration.</li>
  <li>Exactly how to do that and what follows gets a bit hazy to me at the moment.</li>
  </ul>
  
  <p>I'm sure the above is a simple exercise for a Django developer. Could anyone give me some starting hints or even better an existing project that does something similar?</p>