in my Django app i need to provide rest api's for almost all the views. so what i need to do is provide login option by using an api.
The default behaviour of auth_views.login is to redirect after login to a redirect url specified, however i need to check if content-type is application/json in the request i need to return the session id instead of redirecting to the redirect url & then the user can use this session id to use other api's?
how could i do that. remember i cannot usedjango-rest-framework