Wednesday, July 27, 2011

Re: Doesn't render templates any longer

def main(request):
context=Context()
    this_is_the_template_object = loader.get_template("main/
start.html")

this_is_the_template_rendered=this_is_the_template_object.render(context)
    return HttpResponse(this_is_the_template_rendered)


What you are feeding HttpResponse is the object rather than the
rendered template.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment