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.
from django import forms
from pytask.taskapp.models import Task
class TaskCreateForm(forms.ModelForm):
class Meta:
model = Task
fields = ['title', 'desc', 'tags', 'credits']
publish = forms.BooleanField(required=False)