{ "info": { "author": "Richard Moch", "author_email": "richard@rootsaka.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Utilities" ], "description": "============\nNotification\n============\n\nNotifications are short emails sent to users by Facebook or Twitter to inform users of some changes.\n\ndjango-email-notification allows backoffice users to send short email notifications to django registered users or users you only know the email about what is new or changed from django's admin or a dedicated view. And then track their clicks.\n\n\ninstallation:\n-------------\n\npip install django-email-notification\n\n\nsettings:\n---------\n::\n\n NOTIFICATION_TEMPLATE = 'email' # name of the templates to use (without extension). Must have a .txt and a .html version\n NOTIFICATION_FROM_EMAIL = '' # sender email, typically no-reply@you-site.com\n NOTIFICATION_FROM_NAME = '' # sender name\n NOTIFICATION_UNSUBSCRIBE_REDIRECT = '/you-unsubscribed/' # possible page redirection after unsubscription\n NOTIFICATION_REGISTRATION_MESSAGE_TAG = 'notification' # allow filtering notification messages\n\n # Description of linkable objects.\n NOTIFICATION_ASSOCIATED_OBJECTS = (\n { 'name': 'products', # reference name, used in forms and templates\n 'description': u\"New products\", # Human readable description\n 'long_description': u\"Last products added to our site\", # Long description\n 'class': 'project.application.models.Product', # path to the class model\n 'title_attr': 'product_description', # Model instance field or callable to display in form\n 'order_by': '-creation_date', # order to sort Model instances in form and email template\n 'manager': '', # manager to use if so\n },\n )\n\n\nEmail template:\n---------------\n\nIn template, linked objects can be processed this way by example:\n::\n\n {% if object_types.OBJECT_NAME.instances %}\n