from django.shortcuts import render

def index(request, **kwargs):
    return render(request, 'index.html.j2', {'title': 'MyTitle', 'text':
        'MyText'})
How to use jinja2 as a templating engine in Django 1.8