def Servers(request): servers = aws.ec2_instances() return render(request, "servers.html", {"Servers": json.dumps(servers)})
#!/usr/bin/python import sys reload(sys) sys.setdefaultencoding('utf-8') sys.path.append("code") import aws servers = aws.ec2_instances() print servers