Skip to main content

A reusable Django app to host multilingual polls on your site.

Installation

If you want to install the latest stable release from PyPi:

$ pip install django-enquiry

If you feel adventurous and want to install the latest commit from GitHub:

$ pip install -e git://github.com/bitmazk/django-enquiry.git#egg=enquiry

Add enquiry to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...,
    'enquiry',
)

Run the South migrations:

./manage.py migrate enquiry

URLs or Apphook

You can just add the enquiry urls to your urls.py or choose the apphook in your django-cms page.

Templatetags

render_current_poll

This inclusion tag allows you to render the currently active poll anywhere on your site:

{% load enquiry_tags %}
{% render_current_poll %}

If you want to customize the ouput of this tag, please override the enquiry/current_poll.html template.

get_current_poll

This assignment tag allows you to get the current poll and render it however you like it:

{% load enquiry_tags %}
{% get_current_poll as poll %}
<h1>{{ poll.get_translation.question }}</h1>

Contribute

If you want to contribute to this project, please perform the following steps:

# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-enquiry
$ pip install -r requirements.txt
$ ./logger/tests/runtests.sh
# You should get no failing tests

$ git co -b feature_branch master
# Implement your feature and tests
# Describe your change in the CHANGELOG.txt
$ git add . && git commit
$ git push origin feature_branch
# Send us a pull request for your feature branch

Whenever you run the tests a coverage output will be generated in tests/coverage/index.html. When adding new features, please make sure that you keep the coverage at 100%.

Roadmap

Check the issue tracker on github for milestones and features to come.

Release files for django-enquiry 0.7.2

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-enquiry 0.7.2
File Size Uploaded
django-enquiry-0.7.2.tar.gz 15.1 kB Details

Release files / django-enquiry-0.7.2.tar.gz

Download URL django-enquiry-0.7.2.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2040949079d130eb02a1545f9b97b1a2fa2b0b9a9020ab6066e0fbb752e3783c
BLAKE2b-256 checksum
How to use checksums
26375472e3f8cfe26aa869482c5798a3f49073e16fa37e041b31c67e663f5552
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7.2 This release

1 release file

0.7.1

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2

1 release file

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