For those of you facing the reset-email-sent-but-not-received issue. Make sure the email address, which you're entering into the reset field, actually belongs to a registered user. The clue is in the success message: "... if an account exists with the email you entered." So, if you're entering your own email address as a test, make sure you register a user with your email address.
@@sabasiddika The email you specify in the settings.py file, is the sender's mail ID, where the one you enter in the reset field is the recipient Mail ID.
@@DennisIvy значит все таки россиянин ) говоришь совсем без акцента, выдает только имя с фамилией. Запиши видео о том как оказался в америке, интересно было бы послушать
your tutorials are amazing...please make a video on user account activation through code by email instead of urls in django it will be very helpful ...thanks
The problem is that google has deleted the "less secure apps option" and that fix is no longer accessible, I would be glad to hear your recommendation...
there is a way around this without using google apis. you can enter your google account and make an app password and use it instead of the password. you must make 2-Step Verification and then you will see App Password, generate one and you are good to go, just replace it with the actual password in you application.
Hi Dennis, Please a video in how to override the forms by default in django, please, i have done a couple but i would like understand in deep how to, your teaching skills help us aaa lot, thank you fur your mission
there is a way around this without using google apis. you can enter your google account and make an app password and use it instead of the password. you must make 2-Step Verification and then you will see App Password, generate one and you are good to go, just replace it with the actual password in you application
Hi Dennis! Great tutorials! I hope you read this and I just wanted to ask if you can make a tutorial to convert all your function views in class based views!! It would be great!
If anyone is getting "'password_reset_confirm' is not a valid view function or pattern name" let me spare you the pain I went through: First off this probably is happening because you included app_name = 'accounts' in your urls.py file. Name spacing is a good thing you're not doing anything wrong. 1. In the main app (the one that has settings.py) add this to urls.py: path('accounts/', include('django.contrib.auth.urls')), 2. In settings.py make sure you have this as your TEMPLATES variable it doesn't have to be exact, the important part is the "DIRS": TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": [os.path.join(BASE_DIR, 'templates')], "APP_DIRS": True, "OPTIONS": { "context_processors": [ "django.template.context_processors.debug", "django.template.context_processors.request", "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ] }, } ] 3. In the top most directory (same level as the accounts app folder NOT inside it) create a folder called templates and inside that create a folder called registration. Add the following files inside the registration folder. I will also include a quick hint for each because the names confuse me all the time: password_reset_form.html - forgot your password?... password_reset_done.html - we've emailed you instructions... password_reset_email.html - the actual email message in your inbox password_reset_confirm.html - please enter your new password... password_reset_complete.html - the password has been changed! I have each file example in a simple little repo here: github.com/sojohnnysaid/django-auth-reset-views edit: made sure to link this series in the github repo and shout out to Dennis who is awesome
I solved it only by adding this line: path('', include('django.contrib.auth.urls')) to the main app urls.py. But anyway thank you for the answer, I thought I am the only one with this error
I had the same bug before, to fix this you have just to write the same code denis wrote in main urls file (crm1/urls.py) and you need to add in the templates folder a folder named registrations that has inside a file with the name password_reset_email.html (it's the email that will be sent to the usert to reset his password) you can check my repo on github to see how I did it github.com/Ninou01/customer-relationship-management-system/blob/master/crm1/urls.py
Thank you for this awesome tutorial. Is there any way we can modify the email? For example change the subject or write a customized email body. Thanx :)
hey man, awesome tutorials! how many videos are going to be in this series and when do you think it will be wrapped up? Absolutely love the way you explain everything clearly
Thank you! I'm finishing up with hosting a live database, putting our static files into AWS S3 buckets and finally putting up the project on a Heroku Server.
I must be missing something, because when I submit to send my password, it does the POST request to /reset_password/ followed by "GET /accounts/password_reset/done/" which misses my 'reset_password_sent/' view. If I type the url path manually: "/reset_password_sent/" it works as expected and displays my custom template.
I also just finished visiting the code repository and copying exactly what was there. Still no luck. Visiting the paths manually works. Did Django change this already?
Hi, thanks for the great tutorial again. 1 Question : Suppose I have 10 users on the website & each of them wants to reset password. How do we make this functionality? From your tutorial it seems only 1 person(administrator) can reset password since his email is put into SMTP configuration.
Good question :) You missed one thing. The email that we set in the SMTP configuration is the email that will send the password reset message. Django needs us to provided a sender, BUT the password reset email will be sent to the email which the user provides in the form. Sorry i didn't explain that better :)
Great video!! thank you so much. I have a question thou, how would I go about changing the email template?, the website im building is in spanish and I need to change the email sent template to be in my language, I justo don't know how to access it to changed it and still send a one time link to reset the password.
Great Tutorial!!!!! I was able to get the email, I'm using a username to login but when I log in with the same username that is linked to that email, It doesn't take the new password. And also I don't get the last page Complete.html, can you please help?
Hi thanks for the tutorial, I can't seem to get past the error Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name. I have cross checked my url paths and everything should be okay but for some reason its failing
I had the same bug before, to fix this you have just to write the same code denis wrote in main urls file (crm1/urls.py) and you need to add in the templates folder a folder named registrations that has inside a file with the name password_reset_email.html (it's the email that will be sent to the usert to reset his password) you can check my repo on github to see how I did it github.com/Ninou01/customer-relationship-management-system/blob/master/crm1/urls.py
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
For those of you facing the reset-email-sent-but-not-received issue. Make sure the email address, which you're entering into the reset field, actually belongs to a registered user. The clue is in the success message: "... if an account exists with the email you entered." So, if you're entering your own email address as a test, make sure you register a user with your email address.
Thanks!!!
why the two email addresses are different that is given in settings file and reset field?
@@sabasiddika The email you specify in the settings.py file, is the sender's mail ID, where the one you enter in the reset field is the recipient Mail ID.
Ade Enga bro did you solved? i am facing sampe error help me?
@@karthickjayachandran4825 So does it mean that I have to have 2 real accounts to check ?
Thank you for the course, still one of the best Django content on TH-cam.
Amazing tutorial! Your explanations are not too fast, nor too slow.
EVERY THING I WANT TO LEARN AND DO IN MY PROJECT IS HERE IN YOUR DJANGO PLAYLIST THANK YOU A LOT FROM SYRIA BIG THANKS
best tutorial in django, change my mind !
Corey Schafer
I really appreciate your assistance its awesome, wish i had met you earlier.
I salute Dennis
Крутое видео. Сейчас буду воплощать) Денис, спасибо, круто!
Пожалуйста 😊
@@DennisIvy значит все таки россиянин ) говоришь совсем без акцента, выдает только имя с фамилией. Запиши видео о том как оказался в америке, интересно было бы послушать
for anyone having trouble with gmail's "less secure" policy, this video has the new way of doing it: th-cam.com/video/sCsMfLf1MTg/w-d-xo.html
you save the people from the future
This worked for me. Thanks so much
Thank you very much. I really appreciate you.
this video is not available anymore
your tutorials are amazing...please make a video on user account activation through code by email instead of urls in django it will be very helpful ...thanks
You are doing an amazing work my brother Dennis. Thank you . Extremely grateful. Supporting from Nepal.
Best django course ever !!!!!!!!!!!
Stellar course Dennis. Simple and to the point.
The problem is that google has deleted the "less secure apps option" and that fix is no longer accessible, I would be glad to hear your recommendation...
there is a way around this without using google apis.
you can enter your google account and make an app password and use it instead of the password.
you must make 2-Step Verification and then you will see App Password, generate one and you are good to go, just replace it with the actual password in you application.
@@deez_dev Hello, i tried it but didnt work. App password is like 4 words with spaces but didnt work, if you could help me would be great
Amazingly Explained, Thank you Dennis for this great effort of yours 👍👍👍👍
You are the best teacher for me
Really thank you for this tutorial it is really helping me with my project
Been following this series and yes,i did learned a lot and understood better from this series😊
Thanx man 🤗
Thank you Dennis Ivy sir, for all this video lectures of django 3. I have gained a lot of new things in the journey of learning django
Dennis you are a legend mate!
Haha I appreciate that :)
love your wok on this series thanx Mr Ivy.
Hi Dennis, Please a video in how to override the forms by default in django, please, i have done a couple but i would like understand in deep how to, your teaching skills help us aaa lot, thank you fur your mission
Google no longer provide less secured apps option 😢😢. Any alternative?
there is a way around this without using google apis.
you can enter your google account and make an app password and use it instead of the password.
you must make 2-Step Verification and then you will see App Password, generate one and you are good to go, just replace it with the actual password in you application
Great and Useful Explanations. Well done!
Hi Dennis! Great tutorials! I hope you read this and I just wanted to ask if you can make a tutorial to convert all your function views in class based views!! It would be great!
To all the people who are having problem with updateOrder do this.
Clear database and redo makemigration and migration it would resolve that problem.
for Less secure app access..Using Security=>App passwords=>set smtp password
Very good explanation and also your topic choice is awesome.
Thank you :)
Worked like a Charm
Hola Dennis, thank you for this tutrorial, waiting next tutorial
Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name.
If anyone is getting "'password_reset_confirm' is not a valid view function or pattern name" let me spare you the pain I went through:
First off this probably is happening because you included app_name = 'accounts' in your urls.py file. Name spacing is a good thing you're not doing anything wrong.
1. In the main app (the one that has settings.py) add this to urls.py:
path('accounts/', include('django.contrib.auth.urls')),
2. In settings.py make sure you have this as your TEMPLATES variable
it doesn't have to be exact, the important part is the "DIRS":
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [os.path.join(BASE_DIR, 'templates')],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
]
},
}
]
3. In the top most directory (same level as the accounts app folder NOT inside it) create a folder called templates and inside that create a folder called registration. Add the following files inside the registration folder. I will also include a quick hint for each because the names confuse me all the time:
password_reset_form.html - forgot your password?...
password_reset_done.html - we've emailed you instructions...
password_reset_email.html - the actual email message in your inbox
password_reset_confirm.html - please enter your new password...
password_reset_complete.html - the password has been changed!
I have each file example in a simple little repo here: github.com/sojohnnysaid/django-auth-reset-views
edit: made sure to link this series in the github repo and shout out to Dennis who is awesome
I solved it only by adding this line:
path('', include('django.contrib.auth.urls'))
to the main app urls.py. But anyway thank you for the answer, I thought I am the only one with this error
I had the same bug before, to fix this you have just to write the same code denis wrote in main urls file (crm1/urls.py) and you need to add in the templates folder a folder named registrations that has inside a file with the name password_reset_email.html (it's the email that will be sent to the usert to reset his password) you can check my repo on github to see how I did it github.com/Ninou01/customer-relationship-management-system/blob/master/crm1/urls.py
Thanks, bro!
@@sofistoyanova7121 thanks bro
Big thanks from indonesia dennis, u made my days :)
Instead of making it using less secure enabled you can create an app in your google account at security page by enabling 2 step verification
Greetings from Uzbekistan!
Спасибо за классное видео!!
My pleasure! Thank for saying hello :)
приятно видеть соседа, я из Кыргызстана
Your videos are great. I do follow your code and tutorials but my email has not received any mails for forgot password in django. Can advice?
Amazing Tutorial
Wow...Wow...Wow.... God bless you....Been following your vids...Love from Nigeria....
bello segun thank you!
Thank you, sir, this tutorial is awesome.
you saved me days buddy! Thanks
You are doing just great bro god bless u
Great tutorial, helped me a lot, as so the comments here!
Thanks Dennis!
excellent tutorial!
super tutorial thats all of works which you explain,
Great tutorial.
Now the page of saying we have sent an email pops up but nothing send to my email at all!!.
because you have to use the exact email which is used to create user account
Try to declare DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
You need to make sure the email exists and that the user has that email. Otherwise, django email will fail silently!
Please Make Videos On Class Based Topics , Custom Query Set, Manager , MIddleware
we can obtain an 'app password' from gmail, which can be used instead of the real password. I think it would also solve the malicious attempt thing.
Super!! Thankyou so much! How would be implemented without templates? For exemple with React JS? And how could I test it with Postman?
I appreciate your efforts, and you have a good explanation for this issue
regards,
Thank you :)
Excellent course
26/07/2020
Thank you for this awesome tutorial. Is there any way we can modify the email? For example change the subject or write a customized email body. Thanx :)
In case you get a Redirect error (Cause you‘re using this in a url with own app_name) add from django.shortcuts import redirect
hey man, awesome tutorials! how many videos are going to be in this series and when do you think it will be wrapped up? Absolutely love the way you explain everything clearly
Thank you! I'm finishing up with hosting a live database, putting our static files into AWS S3 buckets and finally putting up the project on a Heroku Server.
@@DennisIvy looking forward to it! Keep up the great work
I must be missing something, because when I submit to send my password, it does the POST request to /reset_password/ followed by "GET /accounts/password_reset/done/" which misses my 'reset_password_sent/' view. If I type the url path manually: "/reset_password_sent/" it works as expected and displays my custom template.
I also just finished visiting the code repository and copying exactly what was there. Still no luck. Visiting the paths manually works. Did Django change this already?
i have the same problem. I dont know how to fix it. If u have found a way pls tell me.
great teacher. Thanks a lot.
This is a amazing video, thank you
Thanks for the tuto ! It is amazing ! I can fetch the message from my console but not able to send an email , my django version is 3.1.4 !
Great tutorial. U re best
(this is for me you can use it as a waypoint as well)
7:29
great explanation .. Thanks guru
Great tutorial! Thank you! Спасибо!
Very helpful thank you! do you have a tutorial about posting a form and saving in admin based on a model ?
Great Tutorials man!!!!!!!!!!! Can you please share your own notes?
Muchas gracias !! , eres bastante bueno en lo que haces
Thank you!
great lecture Dennis thank you very much.
and one thing you new series video is private ??? why?
Well explained. Thank you.
Great! You are the best! Thnks
Superb
Hi, thanks for the great tutorial again. 1 Question : Suppose I have 10 users on the website & each of them wants to reset password. How do we make this functionality? From your tutorial it seems only 1 person(administrator) can reset password since his email is put into SMTP configuration.
Good question :) You missed one thing. The email that we set in the SMTP configuration is the email that will send the password reset message. Django needs us to provided a sender, BUT the password reset email will be sent to the email which the user provides in the form. Sorry i didn't explain that better :)
@@DennisIvy thanks for your explanation
thankyou so much
Great Tutorial!!!! Can you please send the source code link? The link in the video description is not working.....
Thanks you
Great video! What are the other methods beside SMTP? Do we have to create an email address?
So useful
Great video!! thank you so much.
I have a question thou, how would I go about changing the email template?, the website im building is in spanish and I need to change the email sent template to be in my language, I justo don't know how to access it to changed it and still send a one time link to reset the password.
How to know which user's password is being reset?
Please reply anyone.
I got error when accessing "reset_password", what does it mean? SMTP AUTH extension not supported by server
Nice explanation, carry on...
Thank you 🙏
Thanks!
Thenks bro!!
please make some videos on sessions ,cookie and cache system in Django
Thank you 😊😊
Great Tutorial!!!!! I was able to get the email, I'm using a username to login but when I log in with the same username that is linked to that email, It doesn't take the new password. And also I don't get the last page Complete.html, can you please help?
excelente
You are too good!
Thank you my friend :)
Create a playlist for the Django tutorials so that they are easily accessible
He has already made a playlist of Django
thx very much for this Tutorials it really help
there error when use app_name in urls in app get error
any solution to that error
Thank you 😊😊
very goog
gosh thanks a lot!!!
Денис, а ты сможешь сделать видео с подтверждением мэйла и телефона? И чтобы только с этим активировался аккаунт
Да, у меня другие спрашивали тоже. Мне надо перво другие видеос с делать перво. Потом доберусь до этой :)
@@DennisIvy Спасибо! Буду ждать)
Nice tutorials !...Hey please make some content on search Box with paginations.
Thank you! Coming soon :)
how are you passing that form dynamically to the template?
Hi thanks for the tutorial, I can't seem to get past the error Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name. I have cross checked my url paths and everything should be okay but for some reason its failing
I had the same bug before, to fix this you have just to write the same code denis wrote in main urls file (crm1/urls.py) and you need to add in the templates folder a folder named registrations that has inside a file with the name password_reset_email.html (it's the email that will be sent to the usert to reset his password) you can check my repo on github to see how I did it github.com/Ninou01/customer-relationship-management-system/blob/master/crm1/urls.py
hi i have a NoReverseMatch at /reset_password error when i want to go to reset password confirm page!
I'm having a problem overriding the default templates with my custom ones. I followed the tutorial bus still doesn't work
Can't thank you enough
Working 🙏