fix templates from docs for django 1.6