Yes tht is a posibility too and i have tried tht approach but the
issue is tht there are lot of html files in my app and i am trying to
avoid writing any explicit url because thn i have to keep track of all
the pages tht reference to the media server in tht fasion.
Can't i define my server url in MEDIA_URL and some how have django
make a cross domain connection automatically? I mean it should be so
hard...
Enpaksh Airon
Sent from my iPhone
On Apr 3, 2010, at 4:54 AM, Daniel Roseman <dan...@roseman.org.uk>
wrote:
On Apr 2, 8:49 pm, Enpaksh <enpa...@gmail.com> wrote:
Thanks this was my understanding. It looks like i have to route the
url to view and thn make a call urlopen().read() to fetch the file
from different server.
Enpaksh Airon
Sent from my iPhone
No! This is completely the wrong approach! If you do this you are
negating the whole point of having a separate media server. You are
ensuring that a request for a media asset has to go through the whole
Django stack, for absolutely no purpose.
An HTML page is quite happy to reference media on a different domain -
you just have to set the src of the img/script tags, or the href of
the style tag, to point to wherever your assets are. Really, really
don't do what you are proposing.
--
DR.
--
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
.
--
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.