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.4
- compatibles with Bootstrap5
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e90d6eeb1cdc2a8f9d989598af451640d10fe9770d5bf8c084174674e6a091a |
|
MD5 | 286b3ae19afc5c30da2d1dedc2948891 |
|
BLAKE2b-256 | f503e6d68ad0bfb48c025ee455df915a60b542564e7c85c0c880ca7bb1418f26 |
Hashes for djaodjin_extended_templates-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad6567ef5b044639eef5bc8e878075ee8c6f1c1bf624b2f2e1ac9f5d800a9ed |
|
MD5 | 869e5f9ff44ba1f4103d30ee1f7d46e4 |
|
BLAKE2b-256 | c4856024eaf3f7128d00fa0e7b1d1f9d24fae37404694d903d740317a4ae9542 |