django 1.5 compatibility fixes

- new syntax in template url tags
- class based views in urls.py