Getting the Most Out of Django's User Model

preview_player
Показать описание
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 webinar recording will help novice Django developers understand which options are best when it comes to getting the most out of the Django User model.

Covered:
- Proxy Model
- One-to-One Relationship
- Custom User Model

Рекомендации по теме
Комментарии
Автор

Your approach i.e. describing the differences in user models is very good IMO. Provides a good grounding by example to those of us trying to learn. That said, hemming and hawing indicates lack of preparation a good presentation is a practiced presentation.

jamescapparell
Автор

This is a super awesome video, such clarity has been added to my understanding in this area. I have read so many uninformative blog post on this subject. Thank you.

chakubb
Автор

when I want to have different types of users, what model do I use?

georgesmith
Автор

Very informative place to start to learn about authentication

davidbrown
Автор

Loved the whole session... Couldn't grab most of it at the last ten minutes due to copy and paste...

kushalghimire
Автор

A question, though. I created something similar with Django REST, but, when I return the Profile object to the client I also have the User model serialised, my Q is how can I strip this filed from the Response object. ( I think /i answered this as I was typing, should I just avoid serialising it?)

chakubb
Автор

I'm getting below error, while doing migration
AttributeError: 'ShootUser' object has no attribute 'is_anonymous'


ShootUser is my Custom User model

travelloussapien
Автор

AbstractUser vs AbstractBaseUser was a good question. It's too bad the presenter didn't answer that. You can find an awesome answer for that here:

jnscollier
Автор

i had a question:
whenever we sign up the user from our app, do we have to address User model or Profiles model while using oneToOne field?

tarangranpara