update urls and views to work in django 1.6