开发者

django image storage cdn

I have been using rackspace CDN for the last few months with django-imagekit and django-cumulus.

And I am not really happy with the results.

I seem to get load of errors because of timeouts etc.

 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 decorato开发者_JAVA百科r
   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

What can you guys recommend? S3?


amazon cloudfront has been great for serving video for us. Check it here: http://aws.amazon.com/cloudfront/

You can use the boto package to integrate with it.

Check another example here: http://www.peterbe.com/plog/hosting-django-static-images-with-amazon-cloudfront-cdn

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜