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'
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
Close
Hashes for django-service-templates-1.0.0.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 712542ca890c8d8f0bb4c9f2540723f8b49bee95c93147e5608a4974fd618630 |
|
MD5 | 462573bf34c7252512b32e57c37619cb |
|
BLAKE2b-256 | e40007ebe1d73f9475bf9165eb5249822dfc37dfc0b889078edf439f43fa829b |