added a utility called getTask in task events and made changes in task views accordingly
{% extends 'base.html' %}
{% block content %}
{% if message %}
{{message}}<br />
{% endif %}
{% if redirect_url %}
<a href={{redirect_url}}>click here</a> to return to {{url_desc}}
{% else %}
<a href="/">click here</a> to return to Homepage
{% endif %}
{% endblock %}