from django.http import HttpResponse
from django.template import Context, loader
from django.template.loader import render_to_string

def somepage(request):
    other_content = render_to_string('templates/template1.html', {'name':
        'John Doe'})
t = loader.get_template('templates/template.html')
c = Context({'stuff': 'you', 'stuff2': 'the rocksteady crew',
    'other_content': other_content})
return HttpResponse(t.render(c))
Include a view in a template