@staff_member_required
def security(request, template_name=u'admin/security.html'):
 runner = SecurityCheckRunner()
 results = runner.run()
 return render_to_response(template_name, RequestContext(request, {u'test_results': results, u'title': _(u'Security Checklist')}))

@ staff_member_required def security ( request , template_name = u'admin/security.html' ) : runner = SecurityCheckRunner ( ) results = runner . run ( ) return render_to_response ( template_name , RequestContext ( request , { u'test_results' : results , u'title' : _ ( u'Security Checklist' ) } ) )
run security checks and report the results .