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'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-service-templates-1.0.0.0a4.tar.gz (15.2 kB view details)

Uploaded Source

File details

Details for the file django-service-templates-1.0.0.0a4.tar.gz.

File metadata

File hashes

Hashes for django-service-templates-1.0.0.0a4.tar.gz
Algorithm Hash digest
SHA256 fd1b5a98ae40cbcae98e2f85f6e639133edb438c8dcbf567823f4b337473e3b9
MD5 3e607c52215cf8c8b4201137515b7676
BLAKE2b-256 f257fd785430f9a4524afd15de673b9768adf382157f1ab87824327ac37034ce

See more details on using hashes here.

Supported by

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