upgrade urls for django 1.5
convert templates to django 1.5