1. Rafael A
  2. django-poll-system


django-poll-system / README.TXT

Django-poll-system (example: http://polltest.pythonism.ru)


Django 1.3 or 1.4
JQuery (There are some problems with animation in older versions.) 


1. Install the package into your ecosystem
    >> easy_install django_poll_system
    >> pip install django_poll_system

2. Add it to your INSTALLED_APPS (in settings.py). Example:



3. Add the poll's url to your urls.py.


urlpatterns = patterns('',

    url(r'^poll/', include('poll.urls')),

4. Your TEMPLATE_CONTEXT_PROCESSORS (in settings.py) should look like this:

    # Uncomment for Django 1.3
	# Uncomment for Django 1.4

5. Run "syncdb" command:
   >> python manage.py syncdb

6. Create some queues and polls through the admin panel.

7. Insert the component into your page using a queue title. Use the code snippet below to understand how to do that.  

{% load polls_tags %}
		<title>Test page</title>
		<script type="text/javascript" src="{{ STATIC_URL }}path_to_jquery/jquery.js"></script>
		<h1>Test page</h1>
		{% poll_queue "YourQueueName" %}

That's all. Example: http://polltest.pythonism.ru.