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.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e3a8a841d01f75ba97f175047933ddf2903c4436ad57e4d23c93fc6a152392 |
|
MD5 | 926b366a3facb07abcf3c30496221a5f |
|
BLAKE2b-256 | 743fff6dbdb0ce5049a6f3df80c814578d08e8ad2d50826a13add705de85ec0d |