Skip to main content

A molo module that provides the ability to run polls.

Project description

Continuous Integration Code Coverage Pypi Package

A molo module that provides the ability to run polls and surveys.

Installation:

pip install molo.polls

Django setup:

INSTALLED_APPS = (
   'molo.polls',
)

In your urls.py:

urlpatterns += [
     url(r'^polls/', include('molo.polls.urls', namespace='molo.polls', app_name='molo.polls')),
]

In your main.html:

{% load poll_votings %}

{% block content %}
   {% poll_page page=language_page %}
{% endblock %}

In your section page or article page:

{% load poll_votings %}

{% block content %}
 {% has_questions self as questions %}
 {% if questions %}
   {% poll_page_in_section page=self %}
 {% endif %}
{% endblock %}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

molo.polls-7.0.1.tar.gz (19.9 kB view details)

Uploaded Source

File details

Details for the file molo.polls-7.0.1.tar.gz.

File metadata

  • Download URL: molo.polls-7.0.1.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/2.7.14

File hashes

Hashes for molo.polls-7.0.1.tar.gz
Algorithm Hash digest
SHA256 6bf8bf0f8ed0cfc7fe8c94a19e5933fbfca45281387923f560b2a5af0254a2c6
MD5 069ae84b5e7356e7eb8288640122baca
BLAKE2b-256 2f9932517e9d3f479f5b7ea931625ef9c623a9e23f32f5565480331e7731eade

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page