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