Creating a custom user model in Django 1.6 - Part 5Published on July 9, 2014, 1:05 p.m.
Hello everyone and welcome back to the fifth part of this tutorial (part of the Babbler tutorial series). If you haven't read the first four parts I'd encourage you to do so now:
- part 1: the model
- part 2: migration and admin forms
- part 3: frontend login form
- part 4: admin login form
This week we will cover user registration with e-mail validation as well as the "lost / change password" workflow.
As we did two weeks ago we will be using (generic) class-based views to build our forms and Crispy forms to render them. We will also be using Templated emails to handle our email needs and we will create our first management command.
Creating a custom user model in Django 1.6 - Part 4Published on July 5, 2014, 12:33 p.m.
Once again, we are sorry about the partial posting of this article earlier this week.
This week we will start by covering the admin login form and allowing users to log into the admin site using their e-mail address or their username instead of just their username.
Then we will go through a couple more advanced cases of custom user model in Django, including expirable users.
Creating a custom user model in Django 1.6 - Part 3Published on June 24, 2014, 7:40 p.m.
Hello everyone and welcome back to the third part of this tutorial series. If you haven't done so yet, make sure to checkout part 1 and 2 first.
Last week we saw how to create and use admin forms with a custom user model. This week we will go through the process of creating a frontend login form. During this process we will also cover (part of) template inheritance, csrf, the messages framework, accessing the user from the template and Crispy forms.
I know last week I announced that this week's post would also cover the admin login form but finally the admin login form will be covered next week.Class-based views Crispy forms Tutorial Django Custom user model Read more...
Creating a custom user model in Django 1.6 - Part 2Published on June 17, 2014, 10:30 a.m.
Welcome back for the second part of this tutorial about creating a custom user model in Django.
Last week, we covered the Model and Manager creation as well as schema migration. For those of you who had previously existing users, this week we'll cover data migration and then we will cover (admin) forms.
Creating a custom user model in Django 1.6 - Part 1Published on June 10, 2014, 11 a.m.
Welcome back to our Django tutorial series.
Before Django 1.5 customizing the user model was a bit of a hack as it involved creating a user profile with a one-to-one relationship to the user. All that changed in 1.5.
In this tutorial we are goin to see how to substitue Django's default user model with our own and allow the use of a user's e-mail instead of it's username during the login process.
Since 1.7 is not officially stable yet, this tutorial is meant for Django 1.6 but should also work with 1.7 (except for the South part which will be replaced in 1.7 by Django's own schema migration mechanism)Tutorial Django Custom user model Read more...