I have all my static being served from https://www.example.com/media/

in my code I have all images pointing to /media all over the code.
for example: <img src="/media/img/icon.png">

Is there a way I can point it to use S3 and cloudfront to serve the
static files.

My understanding is that I cannot use CNAME. If I was using
media.example.com instead of www.example.com/media, I could have used
CNAME.

Any other solution? (without requiring me to change all the instances
of /media in all my code)

I use nginx and apache and django 1.1.x. (I will be upgrading Django
soon if ORM performance does not become an issue.)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.

Reply via email to