Skip to main content

Persistable oauth2 Mailchimp backend for Django.

Project description

PyPI Link PyPI Status PyPI License #Django Plantains

Django plantains creates the ability to persist the association of a MailChimp account to an AuthUser account in Django. Leveraging the Django framework this can facitate authentication and persisted storage of Oauth metadata for later retrieval and usage.

Requirements

Django plantains was built and tested for: * Django: 1.8 * Python: 2.7

Installation

Use pip to install into a virtualenv:

pip install django-plantains

In settings configuration file add the following:

INSTALLED_APPS = (
    ...
    'plantains',
)

Include the application URLconf in your project urls.py:

url(r'^plantains/', include('plantains.urls')),

Using a MailChimp registered app, set your client_id and client_secret in your settings configuration as well:

MAILCHIMP_CLIENT_ID = '123456789'
MAILCHIMP_CLIENT_SECRET = 'a1b2c3d4e5f6789'

# Optional parameters
# Defaults
MAILCHIMP_SUCCESS_REDIRECT_URL = '/'


# These are in case MailChimp decides
# to change it's endpoints
MAILCHIMP_AUTHORIZATION_URL = 'https://login.mailchimp.com/oauth2/authorize'
MAILCHIMP_ACCESS_TOKEN_URL = 'https://login.mailchimp.com/oauth2/token'

Use the authentication url to begin the Oauth process in your Django templates.

<a href="{% url 'mailchimp_auth' %}">Feelin Chimpy</a>

Once the authentication is complete you can find your access_token in the mailchimp_user table.

How to Contribute

Django-plantains is willing and open to accept all contributions. Take a fork and make a pull-request. If you feel like becoming an active maintainer, please get in touch in becoming a project contributor.

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

django-plantains-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file django-plantains-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-plantains-0.1.1.tar.gz
Algorithm Hash digest
SHA256 627b620f69546747e0f919ae614b85affd10895ec07d2e3d244a345fc0bb78d7
MD5 7992af90514e3bd8bbe0e84e5f7cef90
BLAKE2b-256 11326f82f972d7573f0b1347dd9f669cdb380d684c1a384007ed3cc1f78929f6

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