How to pass a message from HttpResponseRedirect in Django?

django

Solution

Use the messages framework to send messages between page requests.

Problem

I have a view which does the certain task and return to another view which render hello.html template. ``` def 1stview(request): #Do this #Do that return HttpResponseRedirect('/success/') def success(request): return render_to_response('overview.html', {'overview_files': b, 'total_files':total_files, 'total_size':total_size, 'username': username}, context_instance=RequestContext(request)) ``` After successfully completing 1st view I want to pass 'Successful' message in `overview.html`. There are lots of redirect to `success` view. I want to transfer message only when going through 1st view. How can I do that?

Original source