Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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'

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.

Release history Release notifications | RSS feed

This release

1.0.0.0a4 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page