django-shop-simplenotifications

A simple reusable app for django-shop that sends emailnotifications on certain events
Download

django-shop-simplenotifications Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Martin Brochhaus
  • Publisher web site:
  • https://github.com/bitmazk/

django-shop-simplenotifications Tags


django-shop-simplenotifications Description

A simple reusable app for django-shop that sends emailnotifications on certain events django-shop-simplenotifications 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.InstallationInstall this package into your virtualenv:pip install django-shop-simplenotificationsAdd the app to your INSTALLED_APPS setting:INSTALLED_APPS = ( ... 'shop_simplenotifications',)ConfigurationSN_FROM_EMAILDefault: DEFAULT_FROM_EMAILThe from address for your automated emails. Example:SN_EMAIL_FROM = 'noreply@myshop.com'SN_OWNERSDefault: ADMINSA 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', 'john@example.com'), ('Mary', 'mary@example.com'))TemplatesIn 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:- confirmed_subject.html- confirmed_body.html- payment_instructions_subject.html- payment_instructions_body.htmlAll templates have a request and an order variable in their context.Features- When a buyer completes his order, the shop owners get a notification mail- All notification emails can be easily templated.TestingIf 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.pyExample:mkvirtualenv -p python2.7 yourenvnameworkon yourenvnamegit clone git://github.com/bitmazk/django-shop-simplenotifications.gitcd django-shop-simplenotificationspython setup.py installpip install -e git+git://github.com/divio/django-shop.git#egg=shopcd shop_simplenotifications/tests./runtests.py Requirements: · Python · django-shop · Django


django-shop-simplenotifications Related Software