Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 745 Bytes

README.md

File metadata and controls

46 lines (34 loc) · 745 Bytes

Simple Django poll application.

Installation

pip install django-simple-poll

Install latest from github:

pip install -e git+https://github.com/applecat/django-simple-poll.git#egg=django-simple-poll

Usage

  1. Add 'poll' application in the INSTALLED_APPS settings:

    INSTALLED_APPS = (
    	# ...
    	'poll',
    )
    
  2. Add the poll's url to your urls.py.

    urlpatterns = patterns('',
    	# ...
    	url(r'^poll/', include('poll.urls')),
    )
    
  3. Run python manage.py syncdb or python manage.py migrate poll if you using South.

  4. Add this tags in your template file to show poll:

    {% load poll_tags %}
    {% poll %}
    

Based on https://bitbucket.org/RafRaf/django-poll-system