Django 1.5 compatibility

This update addresses the use of an outdated function-based view (`django.views.generic.simple.redirect_to`) which causes an exception in Django 1.5.