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.6
- fixes .pdf template files when running with latest Django versions
- handles updates to django-storages>=1.14 properly
- supports OpenAPI 3 doc generator
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22c60f6a85b16bdd1182b73b630a537420fed1c3adeeaf75daf073252f36d0f2 |
|
MD5 | e0952e28f2b3c7229de1e7d2e3ed12b3 |
|
BLAKE2b-256 | f8064671944e9bb6d87b93ade30683b6f98175c699801d6331fa5a38537ad1ff |
Hashes for djaodjin_extended_templates-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6d520f17c0db146920bf126a3b2e701275f6d7e947fc05f1f5af8a774b2b1d4 |
|
MD5 | 861e9de358612b0630f7adb57fa4ec75 |
|
BLAKE2b-256 | ac23e978bd688489285bf000c5655861696dc046aa2ea35bfa4db932e0b57473 |