So after looking though the libcloud docs and API it seems to be missing two key features. 1) Ability to upload files to the cloud host 2) Set custom headers for a file That coupled with the fact that most of the providers supported by libcloud offer a separate CDN service with it's own APIs I think it might be handy to write a CDN API for libcloud. So my first real task with this project will be to contact each of the providers supported by libcloud and see if they offer a separate CDN service and if they do what the API is for it. Once I have this info we can come up with a proper CDN API for libcloud
I do not personally use any of the supported providers or even use S3/CloudFront, so if anyone out there does and is interested in helping write provider specific code for the provider you use that would be very helpful. ==== Brainstorming ==== These are the basic models I came up with. Not knowing the API of all the CDNs I am not sure if I should store some type of bucket info with the asset/group or not. I know S3 has buckets but I dont know if any of the others do. So further refinement of the models will need to be done once the CDN API is developed. Models Optimization name command (this is passed to os.system() along with the input and output path for the asset) file_type (js, css, all) priority (This is to ensure execution order of chained optimizations) Asset name (name of the asses used in the template tag) path (full path to the file) optimizations (optional m2m field with the optimizations to be applied to this asset) AssetGroup name (group name used in the template tag) files (m2m field with all files in this group) optimizations (optional m2m field with the optimizations to be applied to these assets) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.