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
- [Answered ]-Django. File field name
- [Answered ]-Send JSON object via POST from JavaScript to Python
- [Answered ]-In Django how to return an existing model instance when saving to database
Source:stackexchange.com