Coder Social home page Coder Social logo

knivets / djaodjin-extended-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from djaodjin/djaodjin-extended-templates

0.0 0.0 0.0 418 KB

DjaoDjin's Template wrappers for HTML email and PDF templates

License: BSD 2-Clause "Simplified" License

JavaScript 36.91% Python 50.79% CSS 2.01% Makefile 1.61% HTML 8.68%

djaodjin-extended-templates's Introduction

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), Django Rest Framework: 3.12
  • Python: 3.10, Django: 4.1 (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.


    $ 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

0.4.2

  • shows TemplateSyntax errors when uploading theme
  • removes unused dependency on bleach
  • removes dependency on vue-infinite-loading for pagination

previous release notes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.