Files changed (1)
+Record a poll submission containing the answer id and text. Each record belongs to a poll (using a ForeignKey)
+In templatetags/poll_tags.py, a function called get_polls renders all the active polls. An argument called limit controls the number of poll returned, by default, it is set to 2.
+This URL will submit the answer and return an HTML view which is re-loaded by JQUERY in to the poll form area.
+A simple bar graph is generated from the answer results. It is a pro-rata of the highest value by the width of the box containing the graph.
+First of all, you must create a new Django project if you don't have one already and run through the conventional installation procedure (settings, db, etc...), then:
+* Please note: I have called my Django project gpoll in various area of the app, so may have to change this reference for your Django project.