generic view,class view_name.as_view()