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 ^_^
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 ^_^
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.