[Answered ]-Django form fails to render_to_response

2👍

That’s because your view doesn’t return the result of

render_to_response('qr_results.html', {'url': qc['url']})

It is also a good practice to do a redirect after POST (see http://en.wikipedia.org/wiki/Post/Redirect/Get ).

0👍

render_to_response('qr_results.html', {'url': qc['url']})

replaced to

return render_to_response('qr_results.html', {'url': qc['url']})

forgot to return it!!!works now

Leave a comment