DjaoDjin's Template wrappers for HTML email and PDF templates
Project description
djaodjin-extended-templates is a Django application that adds missing features for managing Django templates.
Major Features:
Live editing of HTML templates
Build .css from .scss on page load
HTML email templates
PDF templates
Media assets gallery
Upload theme packages
Tested with
Python: 3.7, Django: 3.2 ([LTS](https://www.djangoproject.com/download/)), Django Rest Framework: 3.12
Python: 3.10, Django: 4.0 (latest), Django Rest Framework: 3.12
Python: 2.7, Django: 1.11 (legacy), Django Rest Framework: 3.9.4
Development
After cloning the repository, create a virtualenv environment, install the prerequisites, create the database then run the testsite webapp.
- <pre><code>
$ virtualenv <em>installTop</em> $ source <em>installTop</em>/bin/activate $ pip install -r testsite/requirements.txt $ make vendor-assets-prerequisites
$ make initdb
$ python manage.py runserver
# Browse http://localhost:8000/ # Start edit live templates
</code></pre>
Configure the settings to connect to your e-mail server, then run the sendtestemail command.
- 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 many RedHat systems will link with no error but the outputed PDF will be blank.
Release Notes
0.4.0
removes trailing ‘/’ in API endpoints
stores template in downloaded zip only once
returns nice error message when issue decoding utf-8 templates
[previous release notes](changelog)
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
Hashes for djaodjin-extended-templates-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a3549a8851a9a3668d1fd0ba7c51c48f2cca34e9f1c14beae97532fb200be7 |
|
MD5 | d1eefb3d19fbd2b25d3a55fcafb5b94d |
|
BLAKE2b-256 | 23a2a5f068e681b45e09f2bdb90afbbe5153f0d9842ca2adc07654447f5531ba |