Metadata-Version: 2.1
Name: django-proemail-template
Version: 0.1.9
Summary: A simple Django app to send emails
Home-page: https://github.com/iwalucas/django-email-template/
Author: Lucas
Author-email: teppss@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
License-File: LICENSE

A few months ago, I ran into this post https://blog.anvileight.com/posts/django-email-templates-with-context-stored-in-database/
and decided to make it into a lib after using it on one of my projects

Quick start
-----------

0. Add it to your Environment using::

    pip install django-proemail-template django-summernote


1. Add "django-email-template" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'django_summernote'#required
        'EmailTemplate',
    ]

2. Run `python manage.py migrate` to create the polls models.

3. add url for summernote::

    path('summernote/', include('django_summernote.urls')),

You should see it under admin

How to use it
-------------
Create a new template on admin called default, setting the required info. Use "object" as the context to access the variables (like on a view).


And send it from any code::

    EmailTemplate.send('default', {
        'object': your_model_instance,
    })
    


