That code wasn't right for Django 1.4; fixed site_name stuff