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
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':
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
3 matches
Mail list logo