implemented create task view which needed task.py in events. added a method show_msg to views/user.py and used it in logoff view.
{% extends 'base.html' %}
{% block content %}
{% if error_msg %}
{{ error_msg }}<br />
{% endif %}
<form action="" method="post">
{{form.as_p}}
<input type="submit" value="Submit">
</form>
{% endblock %}