Bump Django from 1.4 to 1.5
Fix some formatting
Update url template tag usage to work with Django 1.5
Replace generic view functions

...with render_to_response or class-based generic views.

Functional generic views was deprecated in Django 1.3 and removed in 1.5.