json response with the sessionId in login/logout response

31 views
Skip to first unread message

Iskren Stanislavov

unread,
Mar 1, 2015, 5:46:59 AM3/1/15
to django-res...@googlegroups.com
Hi,

I am working on a json-only API.

I am caught up with the login/logout. The default response in django comes as an html
even if i used 
    "DEFAULT_RENDERER_CLASSES": (
        'rest_framework.renderers.JSONRenderer',#for production
        # 'rest_framework.renderers.UnicodeJSONRenderer',#for production
    ),
in my settings.py

I need to return something similar to:

 success: true,
 sessionId: el4ukv0kq
}

can you suggest something that suits this requirement

Iskren Stanislavov

unread,
Mar 1, 2015, 8:39:44 AM3/1/15
to django-res...@googlegroups.com
decided to use the "JSON Web Token Authentication" instead
Reply all
Reply to author
Forward
0 new messages