task exception handling for views.py
test assertRedirects applied
test assertRedirects applied
some exception code removed, some added
test logout added