replace deprecated template view to implemented in django1.5.4