Re: Django RequestFactory() secure not working

2014-05-17 Thread James Clemence
Great thanks! On 17 May 2014 06:20, "Kelvin Wong" wrote: > If you print out your code you will see that you are adding a key-value to > the WSGI environ: > > # print factory.post('/', secure=True) > > path:/, > GET:, > POST:, > COOKIES:{}, > META:{ > ... > 'PATH_INFO': u'/', > ... > 'REQUEST

Re: Django RequestFactory() secure not working

2014-05-16 Thread Kelvin Wong
If you print out your code you will see that you are adding a key-value to the WSGI environ: # print factory.post('/', secure=True) , POST:, COOKIES:{}, META:{ ... 'PATH_INFO': u'/', ... 'REQUEST_METHOD': 'POST', ... 'SERVER_PROTOCOL': 'HTTP/1.1', 'secure': True, ... 'wsgi.url_scheme':

Django RequestFactory() secure not working

2014-05-13 Thread jvc26
Could anyone explain what is going wrong here: factory = RequestFactory() factory.post('/', secure=True).is_secure() Surely that should be True? J -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi