I hit a problem when get session_key from request.session.
request.session
I am using Django1.8 and Python2.7.10 to set up a RESTful service.
Here is snippet of
According to John's suggestion.
I fixed the problem by this snippet:
if not request.session.session_key: request.session.save() session_id = request.session.session_key