Django Series 1: A custom login page
This is the first post in the Django series published on solutoire.com. In the series I’ll discuss and solve some of the problems I ran across while struggling with Python and Django in particular. The subjects are handled in a fast pace and the posts in this series will get you up and running quickly. The posts will mainly consist of code examples and a few explanations. Most of the time I’ll refer to other websites for thorough explanations.
In this post I’ll explain how to create a custom log in page. We’ll write our own view function and form that handles the authentication. In the next post I’ll explain how to create a custom authentication backend, that lets you log in users by their email addresses instead of their username.