Skip to main content
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
```

Requirements
------------
Django 1.10+, Python 2.7, 3.4+

Usage
-----

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

```
INSTALLED_APPS = (
...
'poll',
)
```

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

```
urlpatterns = [
...
url(r'^poll/', include('poll.urls')),
]
```

3. Run ```python manage.py migrate```

4. Go to site's admin area and create a new poll:
![82721122-13db-11e7-905a-b90019b0fbde](https://cloud.githubusercontent.com/assets/390483/24417739/393a782a-13f2-11e7-8c09-fd6d0cf228f0.png)

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

```
{% load poll_tags %}
...
{% poll %}
```

6. Check if jQuery is already included on the page. If don't — add it:
```
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
```

7. Make vote, see the results:

![2017-03-28 17 17 10](https://cloud.githubusercontent.com/assets/390483/24410357/8973a134-13db-11e7-9788-94fe3462d1ce.png)
![2017-03-28 17 17 05](https://cloud.githubusercontent.com/assets/390483/24410353/870887e8-13db-11e7-81b6-b5a721696e32.png)


Customization
-------------

Of course, you can (and probably, should) customize Simple Poll's templates. You can simply do this by overriding `base.html`, `poll.html` and `result.html` in `templates/poll` directory.


Release files for django-simple-poll 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-simple-poll 0.2.3
File Size Uploaded
django-simple-poll-0.2.3.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-simple-poll 0.2.3
File Interpreter ABI Platform
django_simple_poll-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / django-simple-poll-0.2.3.tar.gz

Download URL django-simple-poll-0.2.3.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
445f05acdec619560d5b405eb9afe6bc5d48899e6c677fcd63a2386a262315f0
BLAKE2b-256 checksum
How to use checksums
45a0956c9f50e741b5112802d47d26a16f835e6b63d2505f3505321419bd935e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_simple_poll-0.2.3-py3-none-any.whl

Download URL django_simple_poll-0.2.3-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2af9e2bcf51b8bdb0aef1245cea65c0e3870ce575ac898cb4d0b8d9d824293e
BLAKE2b-256 checksum
How to use checksums
d7eae6c75431e8bf5afc3587efe6ec663273844a522224621c2a9d8f1f66732d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.1a1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page