# HG changeset patch # User Nishanth Amuluru # Date 1294507143 -19800 # Node ID 5a96ddc5e04a6ca721f706bd7c419dbc908c7040 # Parent 2211ef7056751db4849cafe6ffc0ff3910511aaa added view for show_msg diff -r 2211ef705675 -r 5a96ddc5e04a pytask/views.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/views.py Sat Jan 08 22:49:03 2011 +0530 @@ -0,0 +1,9 @@ +from django.shortcuts import render_to_response + +def show_msg(user, message, redirect_url=None, url_desc=None): + """ simply redirect to homepage """ + + return render_to_response('show_msg.html',{'user': user, + 'message': message, + 'redirect_url': redirect_url, + 'url_desc': url_desc})