A reusable Django app, that handles newsletter subscriptions
Project description
A reusable Django app, that handles newsletter subscriptions.
Installation
To get the latest stable release from PyPi
pip install django-newsletter-signup
To get the latest commit from GitHub
pip install -e git+git://github.com/bitmazk/django-newsletter-signup.git#egg=newsletter_signup
Add newsletter_signup to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'newsletter_signup',
)
Add the newsletter_signup URLs to your urls.py
urlpatterns = patterns('',
...
url(r'^newsletter/', include('newsletter_signup.urls')),
)
Don’t forget to migrate your database
./manage.py migrate newsletter_signup
Usage
Just link to the signup page or fetch it’s contents via AJAX into e.g. a bootstrap modal. Once a user fills out the subscription form she gets a verification email, that on click makes the Subscription verified.
Future updates might include mailchimp integration to have everything setup right away. For now you then need to gather the emails from the admin or your own custom management views that you want to send mails to, or alternatively create a custom management command.
Management Commands
check_newsletter_signups
This command will iterate through all signups and check if there’s a user in the system matching a signup’s email. You might want to run this command in a cron job.
Settings
Contribute
If you want to contribute to this project, please perform the following steps
# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-newsletter-signup
make develop
git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-newsletter-signup-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fee21f0c232129e06b8c721a27f5ff22d06176ea19af72e7a9cc43005e5823e |
|
MD5 | 119909752ded83656368dfad6a5d9a3d |
|
BLAKE2b-256 | 951df9cd227c0531295d628394a353c811cb7f1f3f0e47e7d6ab92540f6fdf58 |