added view for show_msg
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 22:49:03 +0530
changeset 338 5a96ddc5e04a
parent 337 2211ef705675
child 339 bce480ff6ddc
added view for show_msg
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})