I was struggling the whole day with the CustomerUser Model , and finally find this video, that was awesome .
@codingwithmitch3 жыл бұрын
Ez pz
@sarasalas5372 жыл бұрын
@SujeetKumar-bc3br3 ай бұрын
Mitch, you are killing it with this Django email login tutorial. Ever thought of bringing in FilterBounce to the mix? I began with their free plan and, boy, was I surprised by the accuracy. I stopped wasting leads because other tools would mislabel them as risky.
@gankidevi72893 ай бұрын
Yo, Mitch, this Django custom user model is slick. Just a thought - might want to consider showing the wonders of FilterBounce in a new video. I use their api for contact form verification and lost leads have been a thing of the past. FilterBounce accuracy is unrivaled.
@poloe42 жыл бұрын
Thank you so much Mitch, you've saved me a tone of days of scratching my head. Blessings man.
@learnwithazadd3 жыл бұрын
hell yeah you are awesome man To be honest, I don’t know how you manage to do such all this stuff but I understand all things you said a good job. Very well done!
@thegrind96282 жыл бұрын
Just wanted to say thanks a lot! Working like charm still in Oct 2021!
@spythere2 жыл бұрын
19:05 DO NOT create user passing "password" inside a constructor instead of calling set_password method - that way you avoid encryption and password is not secured. It's a great tutorial though, really helped me :)
@stimpl28042 жыл бұрын
But it isn't passed inside a constructor, it's passed to create_user() which then calls the set_password() method.
@Sunilyadav-lw9bq Жыл бұрын
@@stimpl2804 this is actually a method not a constructor
@ingafter63352 жыл бұрын
Hai again .. Thanks for not writing HTML, but to copy and paste it .. But to tell more detail about Django codes ...:)
@nahidujjamanhridoy96773 жыл бұрын
How about the option for users to log in with either the username or email or phone number just like facebook?
@aKoRDioN Жыл бұрын
I have been trying create a custom user model last three days, now thats the working solution. But maybe you forget fieldsets which is important for groups and permissions.
@254_Cyrus3 жыл бұрын
Hello Mitch. I am grateful for the course and finding you on KZbin, cheers mate. I have a quick question, how can I add say a usertype. In my app we have custom Google and Twitter Sign In but problem is they're at the FrontEnd, and its a pain redoing what the guys have done. How can I add a UserType thats sent from the FrontEnd say email, google or twitter to our custom Account User? I am getting some wierd errors and would appreciate your help on this. Cheers.
@hosenmdaltaf3 жыл бұрын
For so long waiting for this, finally.. 😍
@ingafter63352 жыл бұрын
Hi Mitch, Thanks a lot for this great tutorial. But I have no idea yet how to use them (the users) in a real world project. I mean: 1. How to limit user as normal user to do something. 2. How to limit user as admin to do something. Can you show them please ... Thanks. BR, I am Nyoman from Bali, Indonesia
@KevinTempelx3 жыл бұрын
Thank you django master!
@neiljavier10133 жыл бұрын
the image filepath does not work. Where would you recommend I start looking? I looked in the Account class which lead me to the get_default_profile_image function. i changed what gets returned but the change wasnt reflected on the admin page even after clearing my cache.
@codewithluq3 жыл бұрын
Hey Mitch, Something has happended to me here on this episode..After writing the Account Model... I cant login into the Admin panel despite successfully creating a superuser. So Login with correct email and password cant happen. Wondering if anyone is getting the same issue here
@codingwithmitch3 жыл бұрын
Delete your database and recreate
@miguele75633 жыл бұрын
I have the same problem. I deleted my database but it didn't work :(
@JitenderKumar-tl7zr3 жыл бұрын
@@miguele7563 Don't just delete the database delete the data inside migrations file as well and then recreate
@londachaagaya42483 жыл бұрын
@@JitenderKumar-tl7zr also did this but still didn't worked
@JitenderKumar-tl7zr3 жыл бұрын
@@londachaagaya4248, please share your models.py and admin.py file Github link
@recursion39552 жыл бұрын
Thanks. If i created custom user model and named it 'CustomUser', then it can be accessed in admin panel by URL: /customuser. How can i modify this url, if i want it to be /user (not 'customuser')?
@telemiadedeji16243 жыл бұрын
I'm having problems with the account module, when i removed it from the installed apps it worked
@jaimemerchan91162 жыл бұрын
Thank you very much for the video, could you help me? How do I register users with a valid or existing email? ... thanks in advance
@seritrex79833 жыл бұрын
good luck man. I'm thinking of developing such web app
@codingwithmitch3 жыл бұрын
Well just follow my instructions 😏
@jeevanaperusinghe54332 жыл бұрын
WOooooooow Exellent work Manaana
@MikeJey2 жыл бұрын
Just found your videos today, very great content! Helps me a lot! The python magic part I like most :D
@shounakpandit53803 жыл бұрын
i dont no what is wong but when i add the models and try the login in admin this error is showing up no such column: account_account.is_staff
@bellablaq6692 жыл бұрын
Thank you Mitch. This helped me a lot. And btw you are cute 😅
@amir.tricker3132 жыл бұрын
hi i exactly do the same and also copy your code but after creating a superuser i can't login in admin panel... i do everthing but it doesn't work... please help me!!
@CozumelExpert3 жыл бұрын
I took a small variation from your tutorial. I did not include the username field in my Account class. After a lot of work I make almost everything to work. When I get into the admin page, select accounts and select a particular account I go to the admin/myagendas/account/1/change/ url and get an error because the AccountForm (venv\lib\site-packages\django\contrib\admin\templates\admin\includes\fieldset.html) expects the field "username". The error I get is "Key 'username' not found in 'AccountForm'. Choices are: email, ... Is there a way to tell the admin site that there is no username field? Thank you. Great tutorial.
@user-ft7nt7xo6h9 ай бұрын
Thank you, that's good ...
@konstantinosoroilidis2983 жыл бұрын
Hi! I am quiet confused with the 20:55 part. Why do you follow this process? Thanks :)
@nikosdouras680511 ай бұрын
I was having this error: "Unable to create the django_migrations table (permission denied for schema public" and could not make migrations. postgres=# ALTER DATABASE OWNER TO ; This fixed it for me.
@Pradeep_prasad2 жыл бұрын
I create a post group,and how i show in my user and add tha group in customer user model , please help
@vineetchauhan98173 жыл бұрын
In settings.py AUTH_USER_MODEL = "account.Account" is resulting in Attribute error: can't set attribute How can I solve it? Pls tell.
@BboThe1233 жыл бұрын
Great video. I don't understand one thing... why in "create_user" function password=None but in "create_superuser" is not?
@uberdamcavaletti2 жыл бұрын
I can save superuser, but i have an error, "AttributeError: 'NoneType' object has no attribute 'is_admin' ", but my models.py has is_admin field.
@eyetukingsley2042 жыл бұрын
Try changing is_admin to is_superuser
@richardokonicha3 жыл бұрын
Could you do a short video on how to inspect python libraries' source code? They are 90% advance level code and it gets tricky just trying to understand an implementation.
@codingwithmitch3 жыл бұрын
I dunno I just poke around and search for stuff I don't understand
@georgehdz51623 жыл бұрын
Can i relate other tables with the abstract user table? thanks a lot
@richardokonicha3 жыл бұрын
Cheers🥂
@Shivam_Manswalia3 жыл бұрын
You are amazing.
@ninobach74569 ай бұрын
Thats a lot of hassle for letting people log in with email, it seems like django is really inflexible in that regard.
@ninobach74569 ай бұрын
Especially if you consider that users still have to state a username
@uzafir2 жыл бұрын
thanks a lot bro
3 жыл бұрын
Hi, why in db I can see all the passwords and how avoid?, thanks
@erikdanielgarceshernandez36843 жыл бұрын
the best !
@manojmottyar713 жыл бұрын
How to get current user logged id in custom user model ...
@warshipwarriors2 жыл бұрын
Awesome
@abbysands95103 жыл бұрын
One thing I find funny is the ego of people especially when it comes to solving problems they cannot. Sometimes a person creates an application let say a chat application but there is a bug in code there cannot solve because they don't understand the code and person comes up with a solution to that problem so that everyone can benefit but the creator is envious so they delete the comment out of jealous so they can take the credit, so sad.
@gigachad91102 жыл бұрын
I can't log in without the admin, but someone tried to log in without the admin. Note: I can't speak English
@webdev19433 жыл бұрын
thanks
@chhabiacharya307 Жыл бұрын
for ubuntu users: psql -h localhost -U myuser mydatabase
@ashharmansuri68163 жыл бұрын
When I do migration , it's still asking my username firstly
@kariminic3 жыл бұрын
Have you added this AUTH_USER_MODEL = 'customauth.MyUser' to your settings.py ?
@ashharmansuri68163 жыл бұрын
@@kariminic yes bro I have added Nd I have found the problem I had miss typo
@kariminic3 жыл бұрын
@@ashharmansuri6816 Thats good. Happy Coding.
@ashharmansuri68163 жыл бұрын
@@kariminic yes bro
@sameerverma18733 жыл бұрын
play on 2x....
@duckyeah8963 жыл бұрын
what is "is_admin" it doesnt exist in the documentation
@JitenderKumar-tl7zr3 жыл бұрын
It means that the user is SUPERSUER if "is_admin" is set to True
@sameerverma18733 жыл бұрын
You talk too much rubbish, just get the work done.
@AlanBilsborough2 жыл бұрын
Don't be such a dick. This is a great video, I'm not sure how he can go through so much detail and talk less, maybe you can show us how. Very useful for me. Thanks Mitch
@remist2 жыл бұрын
you dont need to mess with that get_profile_images_filepath.... just use in template and its done
@thatayaone62273 жыл бұрын
2:32 I like that😍💋 💝💖❤️
@recursion39552 жыл бұрын
Thanks. If i created custom user model and named it 'CustomUser', then it can be accessed in admin panel by URL: /customuser. How can i modify this url, if i want it to be /user (not 'customuser')?