Skip to main content

Seminar platform for Mezzanine CMS

Project description

Mezzanine Seminars

Workflow status PyPI version Python versions Follows: Semantic Versioning Code style: Black

Seminar platform for Mezzanine sites.

Features

  • Create seminars with public and private content
  • Accept payments to grant users access to seminars
  • Use registration codes to give access to select user groups without paying
  • "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

  1. Install via pip: pip install mezzanine-seminars.
  2. Add "mezzanine_seminars" to INSTALLED_APPS. Make sure "mezzanine.accounts" is also added.
  3. Add to your root urls.py:
url("^seminars/", include("mezzanine_seminars.urls", namespace="seminars"))
  1. A new Seminars section will appear in the admin. Create your first Seminar!
  2. 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.

Registration Codes

Some users might pay for seminar access without using the website, or you (the site owner) might have a special agreement with them to give them access to seminar content without paying. Registration Codes let you do this. Here's an example:

ACME Inc. has reached an agreement with you for 20 seats for Seminar XYZ. Site admins create the Purchase Code "acme" with the capacity limited to 20. Employees of ACME Inc. will now create their own accounts on the site and enter code "acme" during the registration step for Seminar XYZ instead of paying for their registration. Once the code has been used on 20 registrations it is no longer valid. Site admins will be able to see which code was used in the Seminar Registration admin to identify the 20 attendees from ACME. Multiple Purchase Codes can be active at the same time to allow enrolling multiple user groups, each with a set number of seats.

Generally you will want to combine Registration Codes with an alternative payment method to give users a choice of which to use. For this reason the form mezzanine_seminars.forms.BaseRegistrationCodeForm is provided to be mixed in with other forms.

For example, to allow users to register with Stripe OR Registration Codes:

# your_app/forms.py
from mezzanine_seminars.forms import BaseRegistrationCodeForm
from mezzanine_seminars.forms.stripe import StripeRegistrationForm

class CombinedRegistrationForm(BaseRegistrationCodeForm, StripeRegistrationForm):
    """
    Seminar Registration form that supports both Stripe and Registration Codes
    """

# settings.py
SEMINARS_REGISTRATION_FORM = "your_app.forms.CombinedRegistrationForm"

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


Download files

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

Source Distribution

mezzanine_seminars-1.7.1.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

mezzanine_seminars-1.7.1-py2.py3-none-any.whl (24.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mezzanine_seminars-1.7.1.tar.gz.

File metadata

  • Download URL: mezzanine_seminars-1.7.1.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mezzanine_seminars-1.7.1.tar.gz
Algorithm Hash digest
SHA256 378be432f962621bc65e4ce8f26501582e5b6dba48be3ce337c241828521fc25
MD5 afabb1a2252e8e76699af9e4c58b0da8
BLAKE2b-256 efadb6898b28a059adc6ce5bb098f2aa3bc35acdd4496b89cc4a8678e7202ffa

See more details on using hashes here.

File details

Details for the file mezzanine_seminars-1.7.1-py2.py3-none-any.whl.

File metadata

  • Download URL: mezzanine_seminars-1.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mezzanine_seminars-1.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6a9512397b39348dc5959325785cd5288829d8921b4d066f06dac04247a950ba
MD5 8ba30b4a7ff3a5f96f41f589af9854b9
BLAKE2b-256 0bf10775048b4a5b8e71943687abcee9d17b2c1238990caca9ea2093b44abd1b

See more details on using hashes here.

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