最近几个月我用django-imagekit和django-cumulus一直在使用rackspace CDN。
我对结果并不满意。
由于超时等原因,我似乎得到了很多错误。
File "/www/django_test1/omu2/src/python-cloudfiles/cloudfiles/connection.py", line 347, in get_container
return Container(self, container_name, count, size)
File "/www/django_test1/omu2/src/python-cloudfiles/cloudfiles/container.py", line 83, in __init__
self._fetch_cdn_data()
File "/www/django_test1/omu2/src/python-cloudfiles/cloudfiles/utils.py", line 43, in decorator
return f(*args, **kwargs)
File "/www/django_test1/omu2/src/python-cloudfiles/cloudfiles/container.py", line 90, in _fetch_cdn_data
response = self.conn.cdn_request('HEAD', [self.name])
File "/www/django_test1/omu2/src/python-cloudfiles/cloudfiles/connection.py", line 151, in cdn_request
self.cdn_connection.request(method, path, data, headers)
File "/opt/python2.6/lib/python2.6/httplib.py", line 898, in request
self._send_request(method, url, body, headers)
File "/opt/python2.6/lib/python2.6/httplib.py", line 915, in _send_request
self.putrequest(method, url, **skips)
File "/opt/python2.6/lib/python2.6/httplib.py", line 802, in putrequest
raise CannotSendRequest()
CannotSendRequest
你们有什么可以推荐的? S3?
答案 0 :(得分:1)
amazon cloudfront非常适合为我们提供视频服务。在这里查看: http://aws.amazon.com/cloudfront/
您可以使用boto包与其集成。
点击此处查看另一个示例: http://www.peterbe.com/plog/hosting-django-static-images-with-amazon-cloudfront-cdn