django-plantains 0.2

Creator: codyrutscher

Last updated:

Add to Cart

Description:

djangoplantains 0.2

[![PyPI Version](https://img.shields.io/pypi/v/django-plantains.svg)](https://pypi.python.org/pypi/django-plantains)[![PyPI Python](https://img.shields.io/pypi/pyversions/django-plantains.svg)](https://pypi.python.org/pypi/django-plantains)[![PyPI Status](https://img.shields.io/pypi/status/django-plantains.svg)](https://pypi.python.org/pypi/django-plantains)[![PyPI License](https://img.shields.io/pypi/l/django-plantains.svg)](https://pypi.python.org/pypi/django-plantains)# Django PlantainsDjango 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.# RequirementsDjango plantains was built and tested for:* Django: 1.8* Python: 2.7# InstallationUse pip to install into a virtualenv:```shellpip install django-plantains```In `settings` configuration file add the following:```pythonINSTALLED_APPS = ( ... 'plantains',)```Include the application URLconf in your project urls.py:```pythonurl(r'^plantains/', include('plantains.urls')),```Using a MailChimp registered app, set your client_id and client_secret in your `settings` configuration as well: ```pythonMAILCHIMP_CLIENT_ID = '123456789'MAILCHIMP_CLIENT_SECRET = 'a1b2c3d4e5f6789'# Optional parameters# DefaultsMAILCHIMP_SUCCESS_REDIRECT_URL = '/'# These are in case MailChimp decides# to change it's endpointsMAILCHIMP_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.```html<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 ContributeDjango-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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.