Change templates for django1.5

Change templates for django1.5