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
File details
Details for the file django-service-templates-1.0.0.0a4.tar.gz
.
File metadata
- Download URL: django-service-templates-1.0.0.0a4.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1b5a98ae40cbcae98e2f85f6e639133edb438c8dcbf567823f4b337473e3b9 |
|
MD5 | 3e607c52215cf8c8b4201137515b7676 |
|
BLAKE2b-256 | f257fd785430f9a4524afd15de673b9768adf382157f1ab87824327ac37034ce |