Learn Django - Build a Custom User Model with Extended Fields

preview_player
Показать описание
Another Django tutorial, here we are building a custom user model, as more often than not the default Django model wont meet our project needs. This tutorial will take you through building a model manager, building a new user model with extended fields and then show you how to customise the Django admin interface and finally perform some testing the model.

Introduction
====
00:00 Introduction
02:00 Package/Software overview
03:45 Command file

Developing the new model
====
03:59 User model development
05:12 Translation
08:12 AbstracBaseUser
09:20 Required Fields
11:02 PermissionsMixin
12:05 BaseUserManager
12:43 Building the custom model manager - create_user
14:48 Building the custom model manager - create_superuser
17:52 Letting Django know about our new custom user model

Django Admin:
====
21:42 Customising the Django Admin interface

Testing:
====
27:04 Start testing - install coverage
29:28 Start building tests

Code Repository:

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

After following and failing at implementing the code form all the other tutorials, your tutorial was really simple, understandable and best of all it worked

syedibrahimbukhari
Автор

Thanks for the brilliant tutorial. It was exactly what I was looking for, clear, concise, detailed.

daidensacha
Автор

Your Django tutorials are the most detailed tutorials I have seen on YouTube. Thanks for sharing

kellystephen
Автор

I have been looking everywhere for a custom user tutorial. This is really amazing!

SmokeInYourScreen
Автор

Thanks for the great work you have put in🙂 Happy that I found your channel 💖

srinivasasowmiyan
Автор

Everyone has already said this but this is A+ quality. Truly well done!

karovda
Автор

I'm so happy I found this channel. Awesome content! Thank you!

pgallovich
Автор

thank you sir evey line is perfectly explained, no words to convey my happiness after grabbing the depth concept

jithinrajmmwayanad
Автор

Custom user model and testing it. This channel is ❤️ 🤓

Thank you 🙏🏼

aashayamballi
Автор

Great tutorial! Waiting for the others!

yashmore
Автор

Best best best.
Thank you sir for making the perfect tutorial that I was looking for.

AHabib
Автор

Thank you! A 2nd part would be nice, along with admin approval before users can login.

yasayah
Автор

This is a superbly done tutorial. Thanks so much.

geoafrikana
Автор

You're just the best! gave a like but you deserve more so i subscribed! Thank you and keep it up!!

wilez
Автор

Great tutorial. Thank you for sharing this valuable information. Regards

stanycastillo
Автор

Many, many thanks for that! Awesome tutorial!

Автор

watching this is just satisfying by itself... Thanks. This tutorial has expanded my thinking.

victormungai
Автор

Thank you for this tutortial, did not know about the coverage package. 👍

HermannWinter
Автор

Great Video! I would love, however some follow up video with login/register templates! Of course liked and subscribed :)

CrossMax
Автор

This tutorial helped me a lot. Thank you, thank you, thank you.

mgultas