Getting the most out of Django’s User Model

Video in TIB AV-Portal: Getting the most out of Django’s User Model

Formal Metadata

Getting the most out of Django’s User Model
Title of Series
Part Number
Number of Parts
CC Attribution - ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this license.
Release Date

Content Metadata

Subject Area
Django’s User model is nice, but the fields it provides out of the box are minimal. We frequently need to associate our own custom data with a user, and luckily Django provides ways for us to add to its built-in User model. This talk will help novice Django developers understand which options are best when it comes to getting the most out of the Django User model. I’ll start by talking about the built-in Django User model and what it has to offer. Then I will identify scenarios when the User model might not be enough for a project, and why someone might want something with more flexibility. Then we’ll look at the different ways to get the most out of the Django User model. There are two main methods I’ll cover: Extending the User model Creating a custom User model Extending the User model: Extending the User model is handy when you only need to add a few extra fields. There are two main ways to do this: using a proxy model, and using a OneToOneField. I will cover the pros and cons of each, and give examples for implementing each. Creating a custom User model: With this method, you can substitute Django’s default User model with your own. Though more complex, a custom User model is particularly useful when you need to uniquely identify users by email address instead of by username. I’ll go into a couple more scenarios where a custom User model would be helpful, and show examples of implementation. Lastly, I will show how each method works with the default Django admin, and how they can be managed there.
Computer animation Model theory Fatou-Menge
Email Data model Computer animation Complex number Model theory Multiplication sign Password Attribute grammar Field (computer science) Right angle Game theory Mereology
Proxy server Weight Gradient Attribute grammar Field (computer science) Revision control Mathematics Data model Word Computer configuration Computer animation Blog Time evolution Process (computing) Family Resultant
Area Group action Computer animation Patch (Unix) Interior (topology) Sheaf (mathematics) Shape (magazine)
Data model Computer configuration Proxy server Computer animation Model theory Attribute grammar Database Dean number
Meta element Group action Proxy server Patch (Unix) Model theory Execution unit Variance Shape (magazine) Computer configuration Computer animation Personal digital assistant Internetworking Endliche Modelltheorie Table (information)
Area Email Group action Computer animation Office suite Student's t-test
Data model Computer configuration Trail Computer animation Field (computer science) Endliche Modelltheorie Power (physics)
User profile Computer configuration Computer animation Model theory Fatou-Menge Execution unit Letterpress printing Cartesian coordinate system Theory
User profile Inclusion map Email Computer configuration Computer animation Blog Insertion loss Maize Endliche Modelltheorie Food energy Data type
Email Computer configuration Computer animation Model theory Password Login Basis <Mathematik> Multilateration Implementation
Area Word Computer configuration Computer animation Variety (linguistics) Model theory Gradient Right angle Software testing Food energy Event horizon Form (programming)
Area Proxy server Multiplication sign Model theory Field (computer science) Online help Disk read-and-write head Theory Data model Mathematics Word Different (Kate Ryan album) Personal digital assistant Universe (mathematics) Right angle Endliche Modelltheorie Information security Form (programming)
a portion of the of the of the of the
in the air at of
and a so I don't
think I can be used in the in and the the talk to you about the end of the day year the
the in out with this was the 1st to use of the in the that is the real part of it in the kind of in the in the room and there was a in the in the game I lost the importance of the road and the hands of the all the all the way here at the end of the year and it also in all of the things in the in the end you know at the time the the 1 on the right hand and on the right the right of this all
the things that are not part of the of the of the world and on the other the I don't want to have a lot more in the other way is that in the past and that and so the over not surprising that you will the 1 I want of to the a lot so we
have all of the word there's a kind of the use of the word a we want to find it was in in the in the the in the world so our results
in the the he's using 1 another and with that and that is not you can do this living in the presence of a is 1 of the things that we can actually in the 1st half of the of the family the the the the the of are exactly what is really on that 1 of the things you want the thing in the you it around in so version of this but this will allow us to add that things to are it or not the is to use the gradient and so this is the only thing I want to get the right answer and that we have this is the weighting of the of the of the and so did hear when the 2 of the and this is the you
can say is a region so that the people in our group
the 1st part of In this section we did in the area of the so called because they need do you considering over you displayed here the 2 of you out of the interior of the premises of the so on the size of the and the opposite
of the just answers so on and so on and it is really a way to read it was all that and the natural thing to the that the and so
this is the plan and for the to you and so this is this is this actually read and or the in the in the things that are not on under the the and and OR and like that but it all went on to say that and that the arrival of the US and so the that so there's
a lot of the the the model that here's this and all the things that we ask them to this because you know that in the readers of these actions and so on and so on and then prepare all the yeah B so that the article that you want to display here is going to so this case where the guy so all of of us in in the variance of the that means that you're and so that the thing that here was the Internet is units of you the so that all of the table I just think that
you're a lot of know the using the here so that the the it so I was
the only thing you want to use it the group that's around the world so that the reliability of so they want to have a good for all right so what was likely to be used in they so in my
office and I think the way that the the actions of the variation of so I don't want to students so on like the area where the we have 2 this is what I do know that that's the way we think we so that these are
the this is there any 1 so what is it means that the increase in the model that's what I wanted to make but also
to this is a more active the really worrying that all that hold all the additional we so the use of the the the the this this is not the problem of power and there's actually creating and the fact that the fish in all the wrong 1 a little more on the regional that's what would you do and that's the thing that I have so little of this so this that
is this means that it by creating of the and so that all of the activities that a lot of to the so this means that if you have a theory about these so this is the set of in there I have been all over the world and the 2nd 1 the the but I was the only 1 in this unit and accessing the activities that the it's almost like at
the back of the book so we try to do all kinds of things like that of that is 1 the because of all the using the pseudo revival of it so you have some of the axis in the next 2 the so I more
than the and the world model and you have to get there is the thing is that we use when training the to of the loss to that there's a history and we have a lot about the we also want to make sure that the people of the world the the the energy of the light and so called and things like that of it at the end I thought that was in the hands of the the the the 1st thing I think this is the 1st the same features and so that all these stories that we'll have more and more
about 1 of the things that In this so the
and by the users with the aid of the use of so I think that this is that at the end of the year is that what you know that this is the the value of the but they have lots of the that is so far and so we want the thing which is create the and so this is
the of the thing that is that you can use so this is the kind of thing In this provides the basis of you in the past including all so all you need to be asked to read and write yeah In the past tense good for a while the the hearing of the of the here again go lateral is that it ought to be the but there is 1 thing that you do do what is it that you need need to be expensive to the the and so the top of the you know this but we don't want to use kind of of so that it was inside that there's the that's the and the the
the the right of the that is a lot of the things that I did that on the on the the
is the energy for there are some of the most that means it means that just think of things that a lot of work to and in the fall out of the house the use of it will also be tested the work of the last we modify our test here the in the this is a good thing but reported in the way events and we have a variety of of ways of doing this the the the fact that you might want to think of examples and so on and so on and on the so in practice a lot of you in this year it was the area of all of these things you want this so for I go to the words that you want it was I knew that there was no better than that you and I also said that the the while all the all the all the people that you there's been you know that there is a the so the gradient of this so
only by they say greater than that because you know unless stated that there is 1 of the this time we have the model is the that also the right and the other 1 was what was going on in the middle of that so the only thing that I was looking at the end of the world and that then is 1 of the ways in which a lot of room the a lot of the the the only thing that I think in the and so you wants to read it in the a so that in the what would the it also known as the head of the form of a it the and I don't have a right of the kind of thing so all of the back of the head and says the help of the user the the and so that you know where the user needs to so I think that there is a clear example of and so at the research I have the the the cost of that and that is what we have to do this is the problem with is in and that the there was and here's the necessary licenses but the the the have the security of the person who's started who world while other because of this so I would like to say that all of the difference in the area that's the that's the same as the the use the use of we have a lot of interest in you that you want to use some time with the use of that word decided some of the girls on the problems of for her to just you know know right so have actually that was the experience of having to some of the things that were I say and I this the stages you use the and that is to can In final 1st year out the the the the of of the models of the it's a I believe there is something that you would use or Louise right so and that in the universe back so we thought that signal so that every time you know they each have our on of of any of the parties in the heart so that the the the the analysis that in the past the changes so we also many and the you I think that is a unique the of what is the theory of people around the somebody on the quality of the solution so as being the worst case the case that they have the in in the 2 of you is that once you were it was in the knowledge but the I think that the 1st theft
but if
and Wu's woman and