skip to navigation
skip to content

django-service-templates 1.0.0.0a4

Manage your service templates via Django Admin.

Manage your service templates via Django Admin.

Installation

pip install django-service-templates

Usage

from dbtemplates import Template
from django_service_templates.models import ServiceTemplate

class HeatTemplate(ServiceTemplate):

    # your awesome stuff

    pass

dbtemplate = Template.objects.create(name='My Jinja2 Template', content='{{ name }}')

HeatTemplate.objects.create(template=dbtemplate, context={'name': 'My name'}).render()

> 'My name'
 
File Type Py Version Uploaded on Size
django-service-templates-1.0.0.0a4.tar.gz (md5) Source 2016-01-11 14KB