Django simple poll application
Project description
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:

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:


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.
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:

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:


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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-simple-poll-0.2.3.tar.gz.
File metadata
- Download URL: django-simple-poll-0.2.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
445f05acdec619560d5b405eb9afe6bc5d48899e6c677fcd63a2386a262315f0
|
|
| MD5 |
88338b1dae8a9276f7f48b482ac2639d
|
|
| BLAKE2b-256 |
45a0956c9f50e741b5112802d47d26a16f835e6b63d2505f3505321419bd935e
|
File details
Details for the file django_simple_poll-0.2.3-py3-none-any.whl.
File metadata
- Download URL: django_simple_poll-0.2.3-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2af9e2bcf51b8bdb0aef1245cea65c0e3870ce575ac898cb4d0b8d9d824293e
|
|
| MD5 |
8c9aec1f4fc2a0b196307cfd8bfec108
|
|
| BLAKE2b-256 |
d7eae6c75431e8bf5afc3587efe6ec663273844a522224621c2a9d8f1f66732d
|