How do I use upload_response below in my html/jquery to check if it is true or not, and display some text accordingly without going to a new page?
fileupload.py file:
template = loader.get_template('start_interview.html')
context = Context({ 'upload_response': 'True'})
return HttpResponse(template.render(context))
You will need to use something like jquery for the ajax part.
The
responseMsgwill be the rendered template. There is more than one way to do the above.In your template