Wagtail form builder integration with email marketing subscription platforms like Active Campaign. This package ships with a fully working app which also demonstrates how you can integrate this in your own wagtail website.
- Email Subsription Provider API credentials
- At least one added email subscription list (this is where your contacts will show up)
Install the package from pypi
pip install wagtail-email-subscriptionOr from github directly:
pip install https://github.com/techonomydev/wagtail-email-subscription.gitAdd the following to your INSTALLED_APPS:
INSTALLED_APPS = [
...
"wagtail_email_subscription",
"wagtail_email_subscription.contrib.formpage",
"generic_chooser",
]Note that the order is important here: generic_chooser should be after wagtail_email_subscription
And finally run the migrations:
manage.py migrate- Login your wagtail admin and go to the site settings
- Add your API url and key to the
Email Subscription Settingstab, make sure to enable the settings - Create a new page which has the forms implemented (
contrib.formpageincludes a ready to useForm Page) - Add at least an email field and choose the correct mapping (also
email) - Go to the page settings tab and select a list where the contacts should go, make sure to enable the settings
git clone https://github.com/techonomydev/wagtail-email-subscription
# This will also create a virtualenv when not activated
make installmake lintPytest with coverage is default enabled
make testmanage.py is included in the sandbox for testing the app
sandbox/manage.py migrate
sandbox/manage.py createsuperuser
sandbox/manage.py runserver