A simple reusable app for django-shop that sends emailnotifications on certain events
Only use this, if you are brave!
This is a dead simple approach on email notifications for django-shop. The goal of this app is to hook into django-shop’s various signals in order to send emails to the shop owner and to the buyer on certain events.
Install this package into your virtualenv:
pip install django-shop-simplenotifications
Add the app to your INSTALLED_APPS setting:
INSTALLED_APPS = ( ... 'shop_simplenotifications', )
The from address for your automated emails. Example:
SN_EMAIL_FROM = 'email@example.com'
A tuple that lists people who get notifications about new incoming orders and payments. Each member of the tuple should be a tuple of (Full name, email address). Example:
(('John', 'firstname.lastname@example.org'), ('Mary', 'email@example.com'))
In order to easily provide notifications with the wording and formatting of your choice, there are templates for all email subjects and bodies. In order to override the defaults, add the folowing templates to your templates/shop_simplenotifications/ folder:
All templates have a request and an order variable in their context.
- When a buyer completes his order, the shop owners get a notification mail
- All notification emails can be easily templated.
If you want to contribute to this project and quickly need to run the test-suite, you need to do the following steps:
- create a virtual environment
- fork this repository
- install this package into your virtual environment
- manually install the django-shop dependency (this step will be gone soon)
- execute runtests.py
mkvirtualenv -p python2.7 yourenvname workon yourenvname git clone git://github.com/bitmazk/django-shop-simplenotifications.git cd django-shop-simplenotifications python setup.py install pip install -e git+git://github.com/divio/django-shop.git#egg=shop cd shop_simplenotifications/tests ./runtests.py
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-shop-simplenotifications-0.1.1.tar.gz (6.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django-shop-simplenotifications-0.1.1.tar.gz