Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

kitsunde/django-mailwhimp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Mailwhimp

Django-Mailwhimp is a django application for interacting with MailChimp.

Installation

INSTALLED_APPS = (
    ...,
    'mailwhimp',
)

Usage

Add you app key to application in the admin and select "Load lists" from the admin actions to refresh the lists from mailchimp.

The models arguments map onto the mailchimp API with the difference that a campaign knows which list it belongs to so it takes care of some arguments.

Create a html campaign rendered from a template:

mailchimp_list = List.objects.get(name='newsletter')
content = render_to_string('newsletter/newsletter_detail.html', {
    'newsletter': newsletter
})
campaign = mailchimp_list.create_campaign(content={'html': content})

Test send:

campaign.test_send(emails=[request.user.email])

Actual send:

campaign.send()

Contributing

Clone it and set it up editable in your env.

make develop

Apply patches.

make test

Watch tests pass, send pull request.

About

Integrates Django and MailChimp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages