Saturday, January 16, 2010

Serving static files from subdomain.

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

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

I have edited settings.py:

MEDIA_ROOT = 'http://media.miosito.it'

MEDIA_URL = 'http://media.miosito.it'

ADMIN_MEDIA_PREFIX = 'http://media.miosito.it'


And now ? What do I do ?
.

I am using Apache but I could switch to lightpd or ngix ( if there is
a valid reason ).


Thanks ^____^

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate