Surveying and reporting package for Mezzanine CMS
MIT License
Surveying and reporting package for Mezzanine CMS:
Additionally, admin users can control the Categories, Subcategories, and Purchases from the admin interface under the "Surveys" section of the sidebar.
Install from pip: pip install mezzanine-surveys
.
Add "surveys"
to settings.INSTALLED_APPS
.
Include "surveys.urls"
before Mezzanine's catch-all patterns in urls.py
:
url("^surveys/", include("surveys.urls", namespace="surveys")),
You can also replace surveys/
with any other prefix you prefer.
Run python manage.py migrate
to create all tables.
By default Mezzanine Surveys will allow anyone to purchase a survey without providing payment information (all Survey Purchases will have their transaction ID set to "Complimentary"). If you plan to require payment to access a survey, use one of the following payment gateways:
First, install the py-authorize
package: pip install py-authorize
.
Then add your credentials to your settings module and configure the purchase view:
AUTHORIZE_NET_LOGIN = "<your login>"
AUTHORIZE_NET_TRANS_KEY = "<your key>"
AUTHORIZE_NET_TEST_MODE = True # Set to False in production
SURVEYS_PURCHASE_CREATE_VIEW = "surveys.payments.authorizenet.AuthorizenetSurveyPurchaseCreate"
That's it! Now when the user visits the purchase page, they will see fields to enter their credit card information and have it processed by Authorize.net. Survey Purchases will now store the transaction ID for future reference.