Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
django-shop-simplenotifications
Advanced tools
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', )
SN_FROM_EMAIL ++++++++++++++
Default: DEFAULT_FROM_EMAIL
The from address for your automated emails. Example::
SN_EMAIL_FROM = 'noreply@myshop.com'
SN_OWNERS ++++++++++
Default: ADMINS
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', 'john@example.com'), ('Mary', 'mary@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:
You have the option of providing html versions of confirmed_body.txt
and
payment_instructions_body.txt
(in addition to the .txt files), which will be
sent as an alternative content type for email clients that render html.
All templates have a request
and an order
variable in their context.
Please note that the sender in the PaymentBackend should pass the request
as well.
Example::
confirmed.send(sender=self, order=order, request=request)
email
attribute. If both address
are equal, only one email will be sent. This works for guests and logged in
Users.If you want to contribute to this project and quickly need to run the test-suite, you need to do the following steps:
runtests.py
Example::
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
FAQs
A simple reusable app for django-shop that sends emailnotifications on certain events
We found that django-shop-simplenotifications demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.