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
>
>
>
> <
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
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 occu
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 occu
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 occu
5 matches
Mail list logo