from django.conf import settings
settings.configure()
import django
django.setup()
from django.template import Template, Context, loader
t = Template('Hello, {{name}}')
c = Context({'name': 'world'})
t.render(c)
How to use Django templating as is without server