tags:

views:

64

answers:

1

I have a site developed with django at www.example.com

I want that django insert/serve static files ( images ) in/from media.example.com

How do I do ?

.

Thanks ^_^

+5  A: 

Django's ability to serve static files is meant to be used for development only. Django is a web application framework, and the webservers should be much better at serving static content. (relevant docs here)

You should configure your webserver to serve static content from media.example.com, and skip django for such URLs.

Ofri Raviv