A generic application to manage your newsletters
This library is compatible with:
- python2.6, django1.4
- python2.6, django1.5
- python2.6, django1.6
- python2.7, django1.4
- python2.7, django1.5
- python2.7, django1.6
- python3.3, django1.5
- python3.3, django1.6
django-courriers has three models:
NewsletterList
which represents a newsletter list.Newsletter
which represents a newsletter.NewsletterItem
an item of a newsletter. It could be a content-type you want.NewsletterSubscriber
which represents a user who is subscribed to a newsletter.
You have the choice between three backends to manage and send your emails:
SimpleBackend
, a simple backend to send emails with Django and your current smtp configurationMailchimpBackend
, a Mailchimp backend which uses mailchimp libraryMailJetBackend
, a Mailjet backend, which will be available soon
Download the package on GitHub or simply install it via PyPi
Add
courriers
to yourINSTALLED_APPS
INSTALLED_APPS = ( 'courriers', )
Sync your database using
syncdb
command from django command lineConfigure settings
You have to specify which backend you want to use in your settings
COURRIERS_BACKEND_CLASS = 'courriers.backends.simple.SimpleBackend'
A quick reminder: you can also set your custom DEFAULT_FROM_EMAIL
in Django settings.
A simple backend to send your emails with Django and your current smtp configuration
A backend to manage your newsletters with Mailchimp.
- Create an account on Mailchimp
- Get your API key
- Add it to your settings with others options as described below
- Install the mailchimp library
- Create a list or more if you have users from different countries (see multilingual section below)
Which this backend you have to provide additional settings
COURRIERS_MAILCHIMP_API_KEY = 'Your API key' COURRIERS_DEFAULT_FROM_NAME = 'Your name'
Where the suffix language code is one of Django language code.