1. Rafael A
  2. django-poll-system


django-poll-system /

Filename Size Date modified Message
20 B
231 B
Added tag 0.2.2 for changeset 9377f4bc4589
364 B
The README changed.
1.6 KB
521 B
Added support for Django 1.5

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


Django 1.5+ JQuery (There are some problems with animation in older versions.)


  1. Install the package into your ecosystem

    >> easy_install django_poll_system or >> pip install django_poll_system

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

INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs',

'poll', )

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


urlpatterns = patterns('',


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


  1. Your TEMPLATE_CONTEXT_PROCESSORS (in settings.py) should look like this:
'django.contrib.auth.context_processors.auth', 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.static',


  1. Run "syncdb" command: >> python manage.py syncdb
  2. Create some queues and polls through the admin panel.
  3. Insert the component into your page using a queue title. Use the code snippet below to understand how to do that.

{% load polls_tags %} <html>

<title>Test page</title> <script type="text/javascript" src="{{ STATIC_URL }}path_to_jquery/jquery.js"></script>

</head> <body>

<h1>Test page</h1> {% poll_queue "YourQueueName" %}