fixed templates to support django 1.5 new url style