Skip to main content
https://travis-ci.org/ferrix/django-mgsub.svg?branch=master https://coveralls.io/repos/github/ferrix/django-mgsub/badge.svg?branch=master

This Django module provides a FormView and a Form that subscribe the user to a list on Mailgun.

Usage

  1. Install:

    pip install django-mgsub
    pip freeze | grep django-mgsub >> requirements.txt
  2. Add to Django:

    # settings.py
    INSTALLED_APPS += 'mgsub',
  3. Configure credentials:

    # settings.py
    MGSUB_DEFAULT_MAILINGLIST = 'mylist@example.com'
    MAILGUN_API_KEY = '<secret>'

    or:

    export MGSUB_DEFAULT_MAILINGLIST='mylist@example.com' MAILGUN_API_KEY=...
  4. Add urls:

    # urls.py
    urlpatterns = [
      ...
        url('^mailinglist/', include('mgsub.urls', namespace='mgsub')),
      ...
    ]
  5. Configure:

    ## settings.py
    
    # Setting this to False will disable email sending and the following
    # settings
    MGSUB_SEND_WELCOME = True
    
    MGSUB_WELCOME_FROM = 'noreply@example.com'    # defaults to settings.SERVER_EMAIL
    MGSUB_WELCOME_REPLY_TO = 'me@example.com'     # nothing by default
    
    # Subscription email templates
    MGSUB_WELCOME_SUBJECT = 'Welcome to my list!' # Defaults to: Welcome!
    MGSUB_WELCOME_TEMPLATE = 'myapp/welcome.html' # HTML template
    MGSUB_WELCOME_TEMPLATE_PLAIN = 'myapp/w.txt'  # Plain text template

Metadata

Release files for django-mgsub 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-mgsub 0.2.0
File Size Uploaded Provenance Actions
django-mgsub-0.2.0.tar.gz 21.5 kB Without provenance Details for django-mgsub-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for django-mgsub 0.2.0
File Interpreter ABI Platform Actions
django_mgsub-0.2.0-py3-none-any.whl Python 3 none any Details for django_mgsub-0.2.0-py3-none-any.whl
django_mgsub-0.2.0-py2-none-any.whl Python 2 none any Details for django_mgsub-0.2.0-py2-none-any.whl

Total release size: 47.6 kB

Release files / django-mgsub-0.2.0.tar.gz

Download URL django-mgsub-0.2.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e2991a7eef645d988a328b481ab4b848e1176ac10bd273b387d42618ed3f0047
BLAKE2b-256 checksum
How to use checksums
fdc60fac3dafdb3eb4835860feb75ad0a4221dde5709a25055cc0d2cce5ce72f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.10

Release files / django_mgsub-0.2.0-py3-none-any.whl

Download URL django_mgsub-0.2.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7875fede7255c3c2c7b22ed6232a317099439b8b1b32201dd79f9a218d26de03
BLAKE2b-256 checksum
How to use checksums
72265c8b1c341e56518fa80020f85f25b44b062fbfe90cd826afbea36ede32d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.10

Release files / django_mgsub-0.2.0-py2-none-any.whl

Download URL django_mgsub-0.2.0-py2-none-any.whl
Size 13.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
68041caf4f1150d0d992bd2390e7c5b4fe9b16dfe2722dfd3f17b096ed76311b
BLAKE2b-256 checksum
How to use checksums
601559e9dd52bf21dacd7d2f0c501089a48b2619983bdab32d47aa8aea5e1899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.10

Security for django-mgsub 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page