I wanted to print some success messages from get method back to the index page(home.html) i.e template page with the help of query string. I have redirected to the index page using
return HttpResponseRedirect("/mysite/q="+successfailure)
Now i wanted to print the string success along with other contents in the index file( or template file / home.html file).
I have searched for the solution and found that " django.core.context_processors.request context " should be added to the settings. But i did not find the place to add it. I am currently using python 2.7 and django 1.4.3.
I also tried to use
render_to_response("home.html",{'q':successfailure})
However, the result is printed in the current page(addContent.html- which I dont want) but i want to send the url into '/mysite/' and print the result there.
Please suggest the appropriate solution. Thanks in advance.