[](https://pypi.python.org/pypi/django-plantains)
[](https://pypi.python.org/pypi/django-plantains)
[](https://pypi.python.org/pypi/django-plantains)
# 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:
```shell
pip install django-plantains
```
In `settings` configuration file add the following:
```python
INSTALLED_APPS = (
...
'plantains',
)
```
Include the application URLconf in your project urls.py:
```python
url(r'^plantains/', include('plantains.urls')),
```
Using a MailChimp registered app, set your client_id and client_secret in your `settings` configuration as well:
```python
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.
```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 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.
Metadata
Release files for django-plantains 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-plantains-0.2.tar.gz | 4.4 kB | Without provenance | Details for django-plantains-0.2.tar.gz |
Release files / django-plantains-0.2.tar.gz
| Download URL | django-plantains-0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
214f365e78e8fa8bf5a8648ddcf684e1635d52d14b03c29e7abe91afdbd3576e
|
|
BLAKE2b-256 checksum How to use checksums |
bf69ace981dc7278ec020cea3cdd761ff5d443a52372307f10886cfc843f8189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-plantains 0.2
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.