Django 1.5+ compatibility

Template and urls.py fixes to get things kickin' with Django 1.5+