Wednesday, July 27, 2011

Doesn't render templates any longer

Hi all!
I've encountered a strange bug today.
I want to return an HTTP response with this code:

def main(request):
t = loader.get_template("main/start.html")
return HttpResponse(t)

However, the only result I get is

<Text Node: '<!DOCTYPE html>
<html>
<'>
and the rest of the html file has gone. The same error occurs with
every other file as well. I have tried everything.

Max

--
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