Re: Doesn't render templates any longer

2011-07-28 Thread Benedict Verheyen
On 27/07/2011 23:39, Max Bachl wrote: > 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 > > > >

Re: Doesn't render templates any longer

2011-07-27 Thread Doug Ballance
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

Doesn't render templates any longer

2011-07-27 Thread Max Bachl
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 <'> and the rest of the html file has gone. The same error

Doesn't render templates any longer

2011-07-27 Thread Max Bachl
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 <'> and the rest of the html file has gone. The same error

Doesn't render templates any longer

2011-07-27 Thread Max Bachl
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 <'> and the rest of the html file has gone. The same error