Seminar platform for Mezzanine CMS
Project description
Mezzanine Seminars
Seminar platform for Mezzanine sites.
Features
- Create seminars with public and private content
- Accept payments to grant users access to seminars
- "Subject" (category) system to group seminars by topic
- Allows attendees to fill out "post-seminar surveys" to provide feedback
- CSV exports of seminar registrations
Changelog / History / Release Notes
Check out GitHub Releases.
Installation
- Install via pip:
pip install mezzanine-seminars
. - Add
"mezzanine_seminars"
toINSTALLED_APPS
. Make sure"mezzanine.accounts"
is also added. - Add to your root
urls.py
:
url("^seminars/", include("mezzanine_seminars.urls", namespace="seminars"))
- A new Seminars section will appear in the admin. Create your first Seminar!
- Point your visitors to
/seminars/
to see the list of available seminars.
Accepting payments
By default registering for a Seminar is completely free even if the seminar has a set price. You can enforce a payment requirement by using a custom form in settings.SEMINARS_REGISTRATION_FORM
. Different payment processors require different forms:
Stripe
First, make sure you install the additional requirements with pip install mezzanine-seminars[stripe]
. Then make sure you define your secret API key in settings.STRIPE_SK
. In development this should be a test key.
Finally set the Stripe form to be used when users register for a seminar:
# settings.py
SEMINARS_REGISTRATION_FORM = "mezzanine_seminars.forms.stripe.StripeRegistrationForm"
This will handle the backend configuration, but you will need to override seminars/seminar_registration_create.html
to configure Stripe's browser bindings stripe.js
. This is explained in Stripe's official docs, but it boils down to sending a PaymentMethod ID in the hidden field named stripe_method
. With that the server will be able to complete the purchase.
Contributing
Before you contribute a bugfix or add a new feature, please check the issue tracker and open a new issue to discuss the work to be done. Once you're clear you want to work on the codebase:
git clone git@github.com:unplugstudio/mezzanine-seminars
cd mezzanine-seminars
# Test suite
pip install -e .[testing]
pytest tests
# Code style
pip install flake8 black
flake8 .
black .
# ALTERNATIVE: have Tox run everything (tests and code style)
pip install tox
tox
Once you're done with your changes and ensured all tests pass, create a pull request and verify the continuos integration tests also pass.
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
Hashes for mezzanine_seminars-1.4.0b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac17e5060d157c40f5424ef81110d46a0d77113fb5966801e2bccd9b464333e1 |
|
MD5 | 6b979a5e5eabd3747ab159ae563a9ebe |
|
BLAKE2b-256 | cdb03f87a1fa5b3aca6270a45498d2f1c49b3245a145c8d37538eace50f521ec |
Hashes for mezzanine_seminars-1.4.0b1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85c0b17d6ed25f9fb696cc44907183d8a23e6bb5d73244f4df7f3658e8ed41dc |
|
MD5 | ea7875aa9b8c464f133d422b2969da49 |
|
BLAKE2b-256 | 7923191e584929b50f27ce7368368638676abfe52036250ae8724e650c1e6ef2 |