Тёмный
No video :(

Custom User Model | Explore Django 

Code With Stein
Подписаться 28 тыс.
Просмотров 37 тыс.
50% 1

Learn how to create a custom user manager and database model for users in Django.
By doing this, it will be easy to replace username with email, add custom fields and similar.
---
Code With Stein Premium
If you want to learn even more from me, check out my website codewithstein.com where you can track progress, talk to me and similar :-D
Support me
Donate: www.paypal.com...
Patreon: / codewithstein
Merch: shop.spreadshi...
Important links
Discord: / discord
Github: github.com/Ste...
Twitter: / codewithstein
Website: codewithstein.com
---
#codewithstein #django

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@timoyk
@timoyk 2 дня назад
2 years later and it's a banger, thank you very much.
@proletar-ian
@proletar-ian 4 месяца назад
I've tried to pick up Django several times over the last few years and always moved on to another technology after getting frustrated with the specific problem of setting up a custom user and integrating it with auth. I finally got it working after watching this video, so thank you! :) Django really needs to make a few doc pages to cover this
@judahwilson6756
@judahwilson6756 2 месяца назад
same.. its a little wack imo
@santoshbhattarai2527
@santoshbhattarai2527 2 года назад
Currently doing college project using many django customizations and I see some django tutors explaining those. What a timing. Thanks Stein.
@CodeWithStein
@CodeWithStein 2 года назад
Nice 😁 glad you liked it 👍🏻
@b-k-i-t-w
@b-k-i-t-w 11 месяцев назад
This video, and your contribution to my knowledge of Django, is simply indescribably great. Thank you.
@CodeWithStein
@CodeWithStein 9 месяцев назад
Thanks 😄😄
@rahimrahim2720
@rahimrahim2720 2 месяца назад
Thanks, that's exactly what I needed for my project .
@CodeWithStein
@CodeWithStein 2 месяца назад
Great :-D
@keikusanagi99
@keikusanagi99 2 года назад
Thanks Stain, I love every time you upload a new video because I learn new things about Django
@CodeWithStein
@CodeWithStein 2 года назад
Great 😁 that’s my goal 😁
@wondmagegnabraham8524
@wondmagegnabraham8524 7 месяцев назад
Thank you very much. This way easier than the other I found.
@CodeWithStein
@CodeWithStein 7 месяцев назад
Thanks, glad to hear that :-D
@verdyschemaya3714
@verdyschemaya3714 7 месяцев назад
hello, I followed your tutorial carefully, and I admit that it was well done. I was able to connect with the super user. and for my application I made a login page to access the application interfaces and there too the super user can access it perfectly. only by creating a simple user in the administration site, even by checking on super user and activating the user, he does not connect either to the admin login page, nor to the application page
@CodeWithStein
@CodeWithStein 7 месяцев назад
☺️
@nurullo.salaydinov
@nurullo.salaydinov 2 года назад
It is really useful to use custom user model, I have used AbstractUser but not UserManager Thanks Stein 👍👍👍
@CodeWithStein
@CodeWithStein 2 года назад
Great 👍🏻
@RONALDO362009
@RONALDO362009 Год назад
Thank you so much! I really apreciated your video!
@CodeWithStein
@CodeWithStein 9 месяцев назад
Thanks 😁😁
@yashinshekh802
@yashinshekh802 2 года назад
your videos are great stein. Thank you for all you great work. really appreciate it
@CodeWithStein
@CodeWithStein 2 года назад
Thank you 😁😁
@moonlover2022
@moonlover2022 2 года назад
Great tutorial Stein, thanks very much.
@CodeWithStein
@CodeWithStein 2 года назад
Thank you :-D
@fede-tk3rm
@fede-tk3rm Год назад
thanks! just what i needed
@CodeWithStein
@CodeWithStein Год назад
Nice 😁😁
@Davidkiania
@Davidkiania Год назад
Very good love this a lot. Thank you
@CodeWithStein
@CodeWithStein Год назад
Great 😁
@VelhoBeckas001
@VelhoBeckas001 9 месяцев назад
Looks very good Stein, I think I will replace my users app
@CodeWithStein
@CodeWithStein 9 месяцев назад
hanks :-D
@abdssamad5246
@abdssamad5246 2 года назад
I really love your content Stein❤❤❤
@CodeWithStein
@CodeWithStein 2 года назад
Thank you so much :-D
@arowmike
@arowmike 5 месяцев назад
Thank you, Stain, for this wonderful video. In my model, both first and last names were provided and I applied this method, but the name was returned empty. I tried returning return f"{self.first_name} {self.last_name}", still empty. What should I do if I want to concatenate the first_name and last_name into the name field?
@CodeWithStein
@CodeWithStein 4 месяца назад
Hey, you're welcome :-) Hmm, that sounds weird. It looks correct, but it's hard for me to know without looking at the rest of your code :/
@eriktrejo3344
@eriktrejo3344 Год назад
thank you so much for your help, this is exactly what i needed!
@CodeWithStein
@CodeWithStein Год назад
Glad to hear that 😁😁
@WHAT-GRINDS-MY-GEARS
@WHAT-GRINDS-MY-GEARS 2 года назад
Good helpful content as always.
@CodeWithStein
@CodeWithStein 2 года назад
Thanks 😁😁
@kunalverma8536
@kunalverma8536 6 месяцев назад
i am getting an error while creating superuser stating : UserManager._create_user() missing 1 required positional argument: 'username' i am not using username and using name as username can you help with that?
@CodeWithStein
@CodeWithStein 6 месяцев назад
Hey, that depends on how you changed the code. But there should be a required field option on the model
@sakshirekhi1040
@sakshirekhi1040 5 месяцев назад
Thankyou so much.. but is is giving me an issue AUTH_USER_MODEL referstomodel appname.User that has not been installed.. Please can you help me in solving this issue?.
@CodeWithStein
@CodeWithStein 5 месяцев назад
Hey, are you sure you typed it correctly? I think it should be account.User, not appname.User
@fredyfred1950
@fredyfred1950 Год назад
Thank you with the tutorial. I have one issue. When I add user from the admin site his password is not hashed and he can't login with it
@CodeWithStein
@CodeWithStein 7 месяцев назад
Hmm, thats not good :/ will come back to you with an answer 👍🏻
@apolovzla_ccs
@apolovzla_ccs 11 месяцев назад
What about if I just want to add some additional fields to the original user mode? let's say the phone number.
@CodeWithStein
@CodeWithStein 9 месяцев назад
Not possible :/ and this is also the way Django wants us to solve it 🤷🏼‍♂️
@apolovzla_ccs
@apolovzla_ccs 9 месяцев назад
​@@CodeWithSteinThanks for your response bud.
@jhjhzjhfjvhzxjchjhxhjc
@jhjhzjhfjvhzxjchjhxhjc 2 года назад
React or vue in your opinion ??
@CodeWithStein
@CodeWithStein 2 года назад
Vue ❤️
@jamescapparell5673
@jamescapparell5673 Год назад
Teaching is more than just showing us your typing skills. Where does this information come from? What is the logic that you are implementing in the code? Why do it this way what are trade offs? Don't feel bad many of the other so called django teachers suffer from the same limitations.
@CodeWithStein
@CodeWithStein Год назад
Hey, thanks for the feedback :-) It's mostly just because it's really hard to find the balance in a tutorial. If I explain too much, many people will "complain" and say find it slow and boring, and if I explain too little, it can be too hard for beginners to follow. So this is just the way I have landed on making my videos :-) I know that there should be a lot more explanations on many of the subjects I have, but it's hard to do this :P
@CodeWithStein
@CodeWithStein Год назад
Great tip ☺️
@wisdomovermoney3394
@wisdomovermoney3394 Месяц назад
Why should he feel bad for proving high quality content for free? If you want to create custom stuff you need to keep up with the coding process, nobody can explain everything.
@greyhat4175
@greyhat4175 Год назад
u don't have to check if the user passed an email because it is a required argument!
@CodeWithStein
@CodeWithStein Год назад
Ah, Thanks 👍🏻☺️
@josetillman8118
@josetillman8118 2 года назад
ᑭᖇOᗰOᔕᗰ
@CodeWithStein
@CodeWithStein 2 года назад
☺️
@Top5Faqts
@Top5Faqts 5 месяцев назад
thx! what should i do if i need 3 types of users?
@CodeWithStein
@CodeWithStein 4 месяца назад
Hey, you can just add a select field or similar to the database model :-)
Далее
Django Wagtail CMS | Building A Blog In 20 Minutes
22:10
The gist of the the custom user model in Django
10:17
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Просмотров 4,2 млн
Customize User Profile Model - Django Blog #27
10:31
Просмотров 56 тыс.
Custom User Model with email login (DJANGO)
39:21
Просмотров 46 тыс.
I tried 8 different Postgres ORMs
9:46
Просмотров 408 тыс.
Custom Django User Model // DJANGO Tutorial
1:04:40
Просмотров 156 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Create APIs in Django - Intro to Django Ninja
24:04
Просмотров 1,3 тыс.