Change User Password Page - Django Blog #25

  Рет қаралды 39,725

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 107
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Django Blog Playlist ✅ Subscribe To My KZbin Channel: bit.ly/3bWN6wj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
@luffytaro-tg1gm
@luffytaro-tg1gm Жыл бұрын
for anyone getting the error where django is not recognising the request url, it is because of the extra user id in the beggining before /password. So, just add path('/', include('members.urls')), in the urls. py file of the ablog directory.
@achafams
@achafams 9 ай бұрын
thanks bro
@thuongnguyenxuan676
@thuongnguyenxuan676 9 ай бұрын
Thanks @luffytaro-tg1gm so much
@Daibend
@Daibend 3 жыл бұрын
Dear Author, I'm really grateful to you for this lesson, I'm new in Django and this video was useful to me.
@Codemycom
@Codemycom 3 жыл бұрын
Glad to hear it!
@johanneskrugersoftwaredeve9408
@johanneskrugersoftwaredeve9408 4 жыл бұрын
I m very new in Django: I love your "Django Blog" Series. Keep on! Best greeting from Berlin
@Codemycom
@Codemycom 4 жыл бұрын
Welcome aboard! Glad you're enjoying it!
@zeruihai6051
@zeruihai6051 3 жыл бұрын
Man I have watched like twenty videos on ur channel and I just wanna make friends with you! You are insane
@Codemycom
@Codemycom 3 жыл бұрын
Ha thanks!
@frenziechannel9786
@frenziechannel9786 Жыл бұрын
I don’t know if you will read this but I hope so. When I click on the link for change password on “edit profile” it send me an error because it redirects me to 1/password instead of only /password. Number “1” it’s for the user id. And that’s were I have to stop and found no answer on internet, maybe you can help me. Thank you so much for you help and quality videos!!!
@Dylan-tb6ft
@Dylan-tb6ft Жыл бұрын
I am actually having this exact same issue, i inspected the source on the page and found the django form has a built in anchor tag and that appears to be the default URL pathing in the tag in the HTML itself. I cant find the way to change or override this at the moment so my only fix was to make my own extra button above the save button with django that has the correct URL path but it looks really dumb having the broken link that i cant change right above the working button.
@barriesimpson
@barriesimpson Жыл бұрын
@@Dylan-tb6ft Did you sort this out? I am having the exact same problem and have been stuck for 2 days already.
@Dylan-tb6ft
@Dylan-tb6ft Жыл бұрын
@@barriesimpson no i cant figure it out so i have left it for now and im simply moving on with the project. i think its related to there being slightly different versions of django and python since this released. I even posted a stack overflow question and didnt get any replies or help.
@kelvinmacharia3715
@kelvinmacharia3715 Жыл бұрын
I am here now. Having the same issue. I see it has been over a month, did you ever get a solution?
@Dylan-tb6ft
@Dylan-tb6ft Жыл бұрын
@@kelvinmacharia3715 unfortunately not. good luck getting any helpful response from John. He only ever replies to tell us we have an issue with our code and to rewatch the video and see what we did wrong lol. I have a suspicion that reverting the version of django to the version he is using in the video might solve it.
@andrewsmichael416
@andrewsmichael416 3 жыл бұрын
God bless you for the tutorial sir Your explanation is always pretty clear and easy to understand. Please can you also make video based on how to create an e-wallet with django
@Codemycom
@Codemycom 3 жыл бұрын
No sorry, I wouldn't know about that
@rahamanhabib1347
@rahamanhabib1347 4 жыл бұрын
This was a nice elaboration in depth... Thank you and you are doing great Job!!
@Codemycom
@Codemycom 4 жыл бұрын
Glad it was helpful!
@DimpleDaisy01
@DimpleDaisy01 11 ай бұрын
Just wanted to say thanks for making such helpful content. Is it possible to change a password without requiring the old one? What happens if a user forgets their password? Are there alternative methods for regaining access?
@Codemycom
@Codemycom 11 ай бұрын
No you need to prove that you own the account
@saibademais
@saibademais 3 жыл бұрын
You have created a solution using a template for Success Password. Don't have a similar option for the previous invalid Password case? Is there an unsuccess_url command?
@algaspar5413
@algaspar5413 3 жыл бұрын
I really liked your video. I followed the video carefully, though I used my authentication folder rather than your members folder as I was testing on my own Django project. It seems to work fine, but I end up with the four bulleted password requirements help lines showing up twice. They don't go away when I switch to my own PasswordChangingForm instead of the Django PasswordChangeForm; so when I add them into the html template, they show up twice. Do I need to do more than just inherit PasswordChangingForm from PasswordChangeForm? I don't like the standard placement of the help text, and I'd really like to have control over where it goes. Thanks!
@algaspar5413
@algaspar5413 3 жыл бұрын
I just noticed that while I thought everything was working, I see that I'm not really getting my new PasswordChangingForm because my field labels didn't change to New Password1 and New Password2. My views.py and urls.py seem to be fine for password_success, but if I try to point at a different file for my password_change_form, it continues to point at the old one. If I rename the old one, then I just go to the Django default password change page with the admin look...
@algaspar5413
@algaspar5413 3 жыл бұрын
Got it. I had a garbage collector in my authentication/urls.py of "re_path('^', include('django.contrib.auth.urls')),". I had put my password_change and password_success after that. I moved it back to the end and all is working. I just need to change the labels...
@bozok1903
@bozok1903 Жыл бұрын
It helped me a lot. Thank you.
@Codemycom
@Codemycom Жыл бұрын
Welcome
@saibademais
@saibademais 3 жыл бұрын
Congratulations from Brazil
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@zubin1677
@zubin1677 4 жыл бұрын
Can we change the name from New Password1 and New Password2 to something else?
@Codemycom
@Codemycom 4 жыл бұрын
Why?
@zubin1677
@zubin1677 4 жыл бұрын
@@Codemycom seems a bit confusing in my opinion, we can have something like "New Password" and "Confirm New Password"
@nelsonkshetrimayum6790
@nelsonkshetrimayum6790 4 жыл бұрын
@@Codemycom I have the same doubt here Sir. I want the newly changed labels of the entry boxes to be as it was before we bootstrapped it. 'New password1' to be 'New Password' and 'New password2' to be 'New password Confirmation'
@f1nnha
@f1nnha Жыл бұрын
i am following your tutorials and like them very much but i still dont understand why u arent using widget-tweaks even though they are super easy and efficient to use especially if your working with bootstrap and want full customization of the forms
@selildim7389
@selildim7389 Жыл бұрын
This was helpful thanks a lot.
@ignaciod.5287
@ignaciod.5287 3 жыл бұрын
How can I change the name of the label? For example it says "New password1" and "New password2". I would like it to say "New password" and "Password confirmation"
@shriyanshpurohit8706
@shriyanshpurohit8706 3 жыл бұрын
Well, You can change in two ways as: First Way (in your template): {{ form.errors }} Old Password{{ form.old_password }}New Password{{ form.new_password1 }}Password Confirmation{{ form.new_password2 }} Another way (make changes in forms.py file in that particular form): Change the first three lines directly below your main class and just above your Meta class from this video to: old_password = forms.CharField(label="Old Password", widget=forms.PasswordInput(attrs={'class': 'form-control', 'placeholder':'Enter your old password'})) new_password1 = forms.CharField(label="New Password", widget=forms.PasswordInput(attrs={'class': 'form-control', 'type':'password', 'placeholder':'Enter your new password'})) new_password2 = forms.CharField(label = "Password Confirmation", widget=forms.PasswordInput(attrs={'class': 'form-control', 'type':'password', 'placeholder':'Reconfirm your new password'})) Notice that you need to attach only the "label" property in front of your widget property. Syntax as: label = "Your Label" And template in second method should contain {{ form.as_p }}
@PhillyEastSide
@PhillyEastSide 3 жыл бұрын
@@shriyanshpurohit8706 You sir, are a legend! thank you!
@hariharanbalasubramanianpr4243
@hariharanbalasubramanianpr4243 4 жыл бұрын
is there any way that the logged-in user is able to see his own password?? because, its not look to view that algorithm stuffs showing for the logged in person...
@LucasDaniel-rz7ki
@LucasDaniel-rz7ki 2 жыл бұрын
You don't probably want that. For security concerns you should never show (or send by email) plain text password, even to the logged in user (you never know who is actually behind the screen or even capturing it). You can implement a "reset password" feature instead and make sure you are applying two factor authentication like sending the reset link in the registered email, SMS, etc.
@chyldstudios
@chyldstudios 3 жыл бұрын
Excellent explanation!
@Codemycom
@Codemycom 3 жыл бұрын
Glad it was helpful!
@sulimanallahgabo1080
@sulimanallahgabo1080 4 жыл бұрын
it's great tutorial thanks very much however if u did forgot password the blog will be nice
@Codemycom
@Codemycom 4 жыл бұрын
We'll look at that soon...
@sulimanallahgabo1080
@sulimanallahgabo1080 4 жыл бұрын
@@Codemycom great i'll be waiting thanks
@Codemycom
@Codemycom 4 жыл бұрын
@@sulimanallahgabo1080 Cool
@zeek_zone
@zeek_zone 4 жыл бұрын
You typed from_class instead of form_class!!! but still works!!!! how did django handled it !!!
@mereram9536
@mereram9536 4 жыл бұрын
How many more videos will be there. ?
@Codemycom
@Codemycom 4 жыл бұрын
No idea
@versatg5722
@versatg5722 3 жыл бұрын
I do everything I keep seeing The current path, password /, didn't match any of these
@derekkroeker4582
@derekkroeker4582 3 жыл бұрын
For me I had to add profile/password/, I have no idea why, also the path to the edit profile for me I had, profile/edit/. How did your path look like?
@supatutorial4737
@supatutorial4737 2 жыл бұрын
awesome video! thank you very much
@Codemycom
@Codemycom 2 жыл бұрын
Very welcome!
@nagendranfriends3153
@nagendranfriends3153 4 жыл бұрын
One doubt sir , if the user forgot the passwords if they contact adminstator to regenerate new password , is the SUPERUSER has the rights to change any other user's password
@Codemycom
@Codemycom 4 жыл бұрын
we'll probably eventually build a password reset feature
@themilanfc
@themilanfc 2 жыл бұрын
very helpful
@Codemycom
@Codemycom 2 жыл бұрын
Thanks!
@spreadhysteria3650
@spreadhysteria3650 4 жыл бұрын
I wonder how to change thier labels?
@helenasoria3874
@helenasoria3874 Жыл бұрын
Sadly, I tried this and didn't work out and I dont know how to fix the error
@Codemycom
@Codemycom Жыл бұрын
coding doesn't 'work' or 'not work'. If it didn't work, that means you did something incorrectly. Check your code vs the video and determine what you did differently... or google the error you got.
@amirhosseinebneroomi7280
@amirhosseinebneroomi7280 4 жыл бұрын
it healed my headache
@Codemycom
@Codemycom 4 жыл бұрын
Nice!
@danishahmad6334
@danishahmad6334 Жыл бұрын
127.0.0.1:8000/members/password/ instead i am getting this url 127.0.0.1:8000/1/password/ when i click on this form in edit profile
@Codemycom
@Codemycom Жыл бұрын
what did you do differently from the video?
@clive6793
@clive6793 Жыл бұрын
did you sort this?
@Dineshtech-xr8id
@Dineshtech-xr8id Жыл бұрын
im also getting the same
@Dineshtech-xr8id
@Dineshtech-xr8id Жыл бұрын
what about you@@clive6793
@clive6793
@clive6793 Жыл бұрын
@@Dineshtech-xr8id still trying to fix it
@marz4964
@marz4964 2 жыл бұрын
form_class not working from_class working why?
@ilhamferyanto2158
@ilhamferyanto2158 4 жыл бұрын
thanks, i'm waiting this video
@Codemycom
@Codemycom 4 жыл бұрын
Enjoy!
@akshatjai258
@akshatjai258 4 жыл бұрын
Can I get code of full playlist?
@Codemycom
@Codemycom 4 жыл бұрын
github.com/flatplanet/djangoblog
@akshatjai258
@akshatjai258 4 жыл бұрын
@@Codemycom Thanks
@Codemycom
@Codemycom 4 жыл бұрын
@@akshatjai258 Welcome
@michaelnadeau3812
@michaelnadeau3812 3 жыл бұрын
Why don't we have a method for changing a password when the User has forgotten their password?
@Codemycom
@Codemycom 3 жыл бұрын
Because I never got around to that.
@nameteGM
@nameteGM 8 ай бұрын
no me funciona reverseLazy
@nachiketkanore
@nachiketkanore 4 жыл бұрын
Make tutorial on hosting the entire blog site
@Codemycom
@Codemycom 4 жыл бұрын
Will do, but I've got lots of videos showing you how to push django apps to heroku for hosting
@nachiketkanore
@nachiketkanore 4 жыл бұрын
@@Codemycom Thanks. Will check them out 👍
@berk_karaal
@berk_karaal 3 жыл бұрын
Thank you
@Codemycom
@Codemycom 3 жыл бұрын
Welcome!
@sudhirijardar7269
@sudhirijardar7269 2 жыл бұрын
why u dont provide source code???????????
@Codemycom
@Codemycom 2 жыл бұрын
It's on my github. github.com/flatplanet
@neerajbansal2613
@neerajbansal2613 4 жыл бұрын
Thanks....
@Codemycom
@Codemycom 4 жыл бұрын
Welcome
@itzelbrachomolina3446
@itzelbrachomolina3446 3 жыл бұрын
great!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@cimihan4816
@cimihan4816 4 жыл бұрын
make on comment
@Codemycom
@Codemycom 4 жыл бұрын
comment on make
@cimihan4816
@cimihan4816 4 жыл бұрын
😂😂
@mohammadfoisal4873
@mohammadfoisal4873 3 жыл бұрын
How can I get the source code? :)
@Codemycom
@Codemycom 3 жыл бұрын
github.com/flatplanet/djangoblog
How To Upload Images With Django - Django Blog #26
17:59
Codemy.com
Рет қаралды 79 М.
Password Reset Email | Django (3.0) Crash Course Tutorials (pt 20)
19:28
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Login With User Authentication - Django Wednesdays #21
21:25
Codemy.com
Рет қаралды 185 М.
Change user password | Django | python
24:28
Django World
Рет қаралды 4,1 М.
Django Authentication | User Signup, Login, & Password Reset | 2024
2:16:53
How To Register Users - Django Wednesdays #24
14:53
Codemy.com
Рет қаралды 45 М.
Django Tutorial - Change, Recover Django User Password #16
27:49
Python Lessons
Рет қаралды 8 М.
Django Starter with Allauth and Htmx
43:09
Andreas Jud
Рет қаралды 10 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
Create A Blog Profile Page - Django Blog #30
20:20
Codemy.com
Рет қаралды 17 М.
Django Login Form and User Authentication
17:01
Dave Gray
Рет қаралды 19 М.