Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple poll app for Django
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
polls
.gitignore
README.md
setup.py

README.md

Polls app

A simple poll app for Django. Include support for AJAX polls for caching purposes.

Installation

Usage

Create some polls in the admin and show them with or without the provided template tags below

Available tags

Get the latest poll (object).

{% get_poll %}
{% get_poll as [var] %}

Render the latest poll

{% render_poll %}

Render needed javascript for a AJAX version of the latest poll

{% render_poll_ajax %}

example:

<script>
  {% render_poll_ajax %}
</script>
Something went wrong with that request. Please try again.