pytask/views.py
author Nishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 22:49:03 +0530
changeset 100 5a96ddc5e04a
child 125 9b0812962133
permissions -rw-r--r--
added view for show_msg

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})