A reusable Django app, that handles newsletter subscriptions
Project description
A reusable Django app, that handles newsletter subscriptions.
Important note!
If you upgrade from 0.2 upwards, you need to be aware, that the migrations were reset. They used to be south, but they have been re-created to new Django migrations in 0.3.
If you’re first install is on 0.3 or beyond, you don’t have to do anything.
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')),
)
Add the provided middleware to catch all referrers
MIDDLEWARE_CLASSES = (
'...', # your other middlewares
'newsletter.middleware.GetRefererMiddleware',
)
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
DOMAIN
Default = 'locahost:8000'
DOMAIN is the hostname of your site.
DOMAIN = 'example.com'
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
Built Distribution
Hashes for django-newsletter-signup-0.7.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90be527c95ad212bc3705957adce04f1410fc4b88d34b34f337a4b16337416e9 |
|
MD5 | 6294bdb7b61a8e38a899a422d5c3c8d8 |
|
BLAKE2b-256 | 137ced6fcba2c8d6441aaafadefb9f3fe97decffecc48e7119a79f2b11a95045 |
Hashes for django_newsletter_signup-0.7.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 446f85f07433c4fa13860f81e53081c4e595b1d333690c63964889456f8a873f |
|
MD5 | c0b2fb01552e5609e182d57b90a14e59 |
|
BLAKE2b-256 | aeb5a60fc9114ad1967f11c2e58c687cab90a4d0b58e288f91dcafaeac3d12de |