DjaoDjin's Template wrappers for HTML email and PDF templates
Project description
This code was written to simplify the generation of HTML emails and PDF
outputs from templates.
Install
=======
Add the extended_templates to your INSTALLED_APPS.
settings.py:
INSTALLED_APPS = (
...
'extended_templates',
)
Development
===========
After cloning the repository, create a virtualenv environment, install
the prerequisites, configure the settings to your email server, then
run the sendtestemail command.
$ virtualenv-2.7 _installTop_
$ source _installTop_/bin/activate
$ pip install -r requirements.txt
$ make initdb
Here you will need to edit credentials and site.conf to use the appropriate
settings to connect to your e-mail server.
credentials:
EMAIL_HOST_USER =
EMAIL_HOST_PASSWORD =
site.conf:
EMAIL_HOST =
EMAIL_PORT =
EMAIL_USE_TLS =
DEFAULT_FROM_EMAIL =
Then run the ``sendtestemail`` command and look for an e-mail delivered to you
in HTML format.
$ python manage.py sendtestemail __your_email_address__
Note that you will need to link ``podofo-flatform.cc`` with [podofo](http://podofo.sourceforge.net/)
version 0.9.3. Version 0.9.1 as shipped with Fedora 21 will link with no
error but the outputed PDF will be blank.
outputs from templates.
Install
=======
Add the extended_templates to your INSTALLED_APPS.
settings.py:
INSTALLED_APPS = (
...
'extended_templates',
)
Development
===========
After cloning the repository, create a virtualenv environment, install
the prerequisites, configure the settings to your email server, then
run the sendtestemail command.
$ virtualenv-2.7 _installTop_
$ source _installTop_/bin/activate
$ pip install -r requirements.txt
$ make initdb
Here you will need to edit credentials and site.conf to use the appropriate
settings to connect to your e-mail server.
credentials:
EMAIL_HOST_USER =
EMAIL_HOST_PASSWORD =
site.conf:
EMAIL_HOST =
EMAIL_PORT =
EMAIL_USE_TLS =
DEFAULT_FROM_EMAIL =
Then run the ``sendtestemail`` command and look for an e-mail delivered to you
in HTML format.
$ python manage.py sendtestemail __your_email_address__
Note that you will need to link ``podofo-flatform.cc`` with [podofo](http://podofo.sourceforge.net/)
version 0.9.3. Version 0.9.1 as shipped with Fedora 21 will link with no
error but the outputed PDF will be blank.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for djaodjin-extended-templates-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95f9fce4cd90ae78467bfd9a4bc3af5ed3ac27a6dac8507cd49daf77f50b5b2 |
|
MD5 | ad5a63d50f6a9f3cd213ce89ad01154a |
|
BLAKE2b-256 | 1505fd9b314737441ced8c0f635daf44c660e3a501a6e3be6f780081c5cc6e81 |