Re: Ajax and SSL

2011-01-26 Thread Tom Evans
On Sat, Jan 1, 2011 at 7:17 PM, Jakob H wrote: > Hi, > > I'm using Satchmo to build a store for a Django-powered webpage. > Satchmo provides a convenient middleware > ('satchmo_store.shop.SSLMiddleware.SSLRedirect') which allows me to > add { 'SSL' : True } arguments to my view specifications (in

Re: Ajax and SSL

2011-01-02 Thread andrewwatts
Would one of the following work? 1. Hardcore https in the VIEW1 template 2. Write response middleware that, if the request is secure, basically does s/http/https/g on the response text (this obviously gets all other URLs as well, which you may not want) 3. Add another MEDIA_URL like variable to se

Ajax and SSL

2011-01-01 Thread Jakob H
Hi, I'm using Satchmo to build a store for a Django-powered webpage. Satchmo provides a convenient middleware ('satchmo_store.shop.SSLMiddleware.SSLRedirect') which allows me to add { 'SSL' : True } arguments to my view specifications (in urls.py). This forwards requests to using the HTTPS protoco