Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

praekeltfoundation/molo.surveys

Repository files navigation

molo.surveys

Code Coverage

An implementation of wagtailsurveys as a Molo plugin

Installation:

pip install molo.surveys
Testing:
read the .travis.yml file follow the instructions under the scripts heading

Django setup:

INSTALLED_APPS = (
   'wagtailsurveys',
   'wagtail_personalisation',
   'wagtailfontawesome',

)

In your urls.py:

url(
    r"^(?P<slug>[\w-]+)/success/$",
    SurveySuccess.as_view(),
    name="success"
),

In your main.html:

{% load molo_survey_tags %}

{% block content %}
   {% surveys_list %}
{% endblock %}

In your section page or article page:

{% load molo_survey_tags %}

{% block content %}
 {{% surveys_list_for_pages page=self %}
{% endblock %}