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