User sign up login/logout implementation
This application can recommend movies to different users that are registered on the website. To manage the registration process, we use the standard User
Django module as we have seen in the Models sections. Each page of the website refers to the base.html
page, which implements a top bar that allows the user to register or sign in (right side):
Clicking on one of the two buttons sign in or sign up will activate the code:
<form class="navbar-search pull-right" action="{% url 'auth' %}" method="GET"> {% csrf_token %} <div style="overflow: hidden; padding-right: .5em;"> <input type="submit" name="auth_method" value="sign up" size="30" style="float: right" /> <input type="submit" name="auth_method" value="sign in" size="30" style="float: right" /> </div> </form>
The two methods refer to the...