1

在过去的几个月里,我一直在使用 rackspace CDN 和 django-imagekit 和 django-cumulus。

我对结果并不满意。

由于超时等,我似乎收到了很多错误。

 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?

4

1 回答 1

1

amazon cloudfront 非常适合为我们提供视频服务。在这里查看:http: //aws.amazon.com/cloudfront/

您可以使用 boto 包与之集成。

在此处查看另一个示例: http ://www.peterbe.com/plog/hosting-django-static-images-with-amazon-cloudfront-cdn

于 2010-10-05T18:43:26.150 回答