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
Development
After cloning the repository, create a virtualenv environment, install the prerequisites, create the database then run the testsite webapp.
$ virtualenv installTop
$ source installTop/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
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
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
Tested with
- Python: 3.7, Django: 3.2 (LTS)
- Python: 3.10, Django: 4.2 (latest)
- Python: 2.7, Django: 1.11 (legacy) - use testsite/requirements-legacy.txt
0.4.3
- sends raw text e-mail if premail resources cannot be found
- compatibles with django-storages==1.13
- installs using pyproject.toml
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
Built Distribution
Hashes for djaodjin-extended-templates-0.4.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65419cb016f0240dc57ab0868955674d8af8da246967576af88a7ef2fd5052e9 |
|
MD5 | bc250db97b7384ee247081340c7ab751 |
|
BLAKE2b-256 | dce6e54254c0723ca091a91c631769d0e1e53993e444015a2735bc917d4b08be |
Hashes for djaodjin_extended_templates-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7505a0507b71e6eb8eb045b3a7c5b5d3c4fe0e2bcc7f389141a1d4871b1a91e5 |
|
MD5 | 8a74f41bad4ebbc4efda1e2d1721eb50 |
|
BLAKE2b-256 | a13a202e917d4c606ff643a319dc14f5e635e3c73ac78227f10ed4650947f885 |