Drip campaigns for Django.
Project description
Django Drip Campaigns
Drip campaigns are pre-written sets of emails sent to customers or prospects over time. Django Drips lets you use the admin to manage drip campaign emails using querysets on Django's User model.
This project is a fork of the one written by Zapier.
Installation:
- Install django-drip-campaings using pip:
pip install django-drip-campaigns
- Add
'drip'
to yourINSTALLED_APPS
list on your settings.
INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.comments',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
# ...
'drip',
]
-
(Optional) Set
DRIP_FROM_EMAIL = '<your_app_from_email>'
in your settings, where<your_app_from_email>
is the email account that is going to be shown in the sent emails. OtherwiseEMAIL_HOST_USER
value will be used. -
Finally, run
python manage.py migrate drip
to set up the necessary database tables.
Usage
If you haven't, create a superuser with the Django createsuperuser command. Login with the admin user, and select Drips
to manage them. You will be able to:
- View created drips.
- Create a new drip.
- Select and delete drips.
Create Drip
In the Django admin, after select Drips
, you can click on ADD DRIP +
button to create a new one. You will see the add drip
page:
{ width: 700px }
On the FIELD NAME OF USER
input, when you click on it, you will be able to view:
- The fields of your user's model.
- The fields of your user's model in other models that are related with it.
Please take a look a this example:
With this, you can select one or more fields to create useful drips.
Additionally if you select a field name of user that has a date type, you can enter in the FIELD VALUE
input, a date value written in natural language that combines operations on the current datetime.
For example, if you have selected the field last_login
that has a date type, and you want to create a drip to send emails to the users who logged in exactly one week ago; you can enter:
now-1 week
or
now- 1 w
Possible operations and values:
- Add (
+
) or subtract (-
) dates. - On the left side of the operation, write the current datetime value:
now
. - On the right side of the operation:
seconds
ors
.minutes
orm
.hours
orh
.days
ord
.weeks
orw
.- If you enter the number
1
, you can writesecond
,minute
, etc. - Don't enter a space between
now
and the operation symbol. Optionally you can add (or not) a space around the number value.
Let's see some examples of the date values that you can enter:
now-1 day
now+ 8days
now+ 1 h
now-4hours
now- 3 weeks
now-1 weeks
View Timeline
In the Django admin, you can select a drip and then click on the VIEW TIMELINE
button to view the mails expected to be sent with the corresponding receivers:
Send drips
To send the created and enabled drips, run the command:
python manage.py send_drips
You can use cron to schedule the drips.
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-drip-campaigns-0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18a5bbb090914d4030b460f85bfd40925ab5ae04c65e56f35f0dcffd8befb6a8 |
|
MD5 | 3dcb7470ead24dcdad0617e57aac578c |
|
BLAKE2b-256 | 827357bca8fc932e96affb76db1a80b0a8c1803e15e449ae67db3dacd7dddc1c |
Hashes for django_drip_campaigns-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c34832d961e5328e0d982f47edd328e3e520179c76d3b2269f9830096b7be559 |
|
MD5 | 6c5d9726a8fabbdc3da1ac52f8799787 |
|
BLAKE2b-256 | 4162522474b9c58e8ce5ce6da7c109f1b9118a07064af7101dfa91c747c77029 |