title: How to use Star rating of Font-awesome with Django?
body: <p><a href="http://fortawesome.github.com/Font-Awesome/" rel="noreferrer">Fontawesome</a> has a great star rating css extension, which looks really awesome.  </p>
  
  <p>However clicking on any of the span elements wouldn't really do anything.  I don't know how to hook this up with my database model. Lets say I have an integer field of 0-5 in Django. How could I set the value according to the user's selection within the template?</p>
  
  <p><img src="https://i.stack.imgur.com/EYQCo.png" alt="enter image description here"></p>
  
  <pre><code>&lt;span class="rating"&gt;
    &lt;span class="star"&gt;&lt;/span&gt;
    &lt;span class="star"&gt;&lt;/span&gt;
    &lt;span class="star"&gt;&lt;/span&gt;
    &lt;span class="star"&gt;&lt;/span&gt;
    &lt;span class="star"&gt;&lt;/span&gt;
  &lt;/span&gt;
  </code></pre>