Django REST framework: token authentication with HTML frontend
<p>I want to use token authentication with HTML frontend (like in this tutorial <a href="http://www.django-rest-framework.org/topics/html-and-forms/" rel="nofollow">http://www.django-rest-framework.org/topics/html-and-forms/</a> where they show how to render login form, but not how to actually login).</p>

<p>I have already a login function that returns token, but I don't know how to make web browser remember it and redirect somewhere else.</p>

<p>It is probably possible to pass the token to every template, but it seems a terrible practice</p>