Re: how to django to request a page of the other domain

2009-04-01 Thread Doug B
It might be better to use the rewrite/proxy capability of your webserver rather than try to proxy using django. If you do end up trying to do it in python, I found pycurl to be much easier to deal with for any requests requiring cookies, authentication, or anything besides a simple url get despit

Re: how to django to request a page of the other domain

2009-04-01 Thread Oli Warner
Look at urllib2 (google) You should be able to do something like return HttpResponse(urllib2.urlopen('http://www.your-url.ext/uri')) 2009/4/1 Albert > > cross domain ajax request is not allowed ,so I decide to use proxy on > the server side > but I don't know how to finish this, anyone point m

Re: how to django to request a page of the other domain

2009-04-01 Thread Dougal Matthews
It depends what data your fetching I suppose but you might just want to use urllib? JavaScript triggers a view that makes a request to the remote server and outputs the result to your javascript. Dougal --- Dougal Matthews - @d0ugal http://www.dougalmatthews.com/ 2009/4/1 Albert > > cross d

how to django to request a page of the other domain

2009-04-01 Thread Albert
cross domain ajax request is not allowed ,so I decide to use proxy on the server side but I don't know how to finish this, anyone point me some url? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou