Skip to main content

Manage your service templates via Django Admin.

Project description

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'

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page