9:36 To avoid copying files back to main gfg folder. Give django-admin startproject gfg . (after project name give a space and dot(.)). it will create only one folder with all files.
Excellent explanation brother, well understood, and i successfully completed my first project as a beginner with your help My sincere thanks to, GeeksforGeeks and Anubhav brother for nice explanation..
Anubhav Madhav, you are the man! This is the best Django Authentication tutorial I've come across anywhere. The only one that has worked for me. I can't thank you enough ma man. Blessings!
@@AnubhavMadhav google no longer allows less secure apps settings to turn on 46:00 . i was following the video and doing this project. can i still go throw with this video or is there a workaround?
It's really helpful thanks for making this video. While running your code I did such improvements, Please check. -> In email_confirmation.html there is a type error in your tutorial i.e you typed "uid64" instead of "uidb64" -> And "force_text" is not working for me therefore i used "force_str" And thanks again for this wonderful and helpful tutorial.
am getting Reverse for 'activate' with keyword arguments '{'uidb64': '', 'token': ''}' not found. 1 pattern(s) tried: ['activate/(?P[^/]+)/(?P[^/]+)\\Z'] using Django v4
Excellent tutoroial but i see you forgot to mention a step which prevented the HTML text from appearing after you put in the templates folder under authentication. You have to go into the settings under 'dirs' [] and add 'templates'
Sir please mention the extensions you have used in VS Code for this video. I am not getting some code suggestions for import statements in django in quick fix
very excellent video but one addition to this video is that , template inheritance may be applied for better html handling thought here frontend is not main to teach!!
Just enable 2 factor authentication in your Google account and after enabling you will get an option of creating app. Now create a app with any name you like and after that you will get 16 characters password just copy it and paste it in the code(WITHOUT SPACE).
@@explorewithlainey3935 inside 2 step verification section you will see "App passwords" option just down below of the page. Just click and make a new app with your preferred name. After this you will get password that's it.
@@AnubhavMadhav Hello Mr Anubhav, Thank you very much for such an amazing tutorial. Please I have a question in the sign view function. How did you call the "user.first_name" in the function when we didn't clearly get the details in the form from the user?
Good job but sadly outdated to work today Because Google stopped supporting "Less Secure Apps" feature which prevent me from making my app send Confirmation email.
Now, that I have the idea of how to build up a login, I want to add in CSS to it and make it a full website. I really don't care for the email part to be working at the moment, as I need to learn more about the libraries and the code for it is a bit confusing. Thanks a ton.
00:00 Learn how to create a login system using Django with email confirmation feature. 07:24 Create a virtual environment to install Django and set up a basic signup and login functionality. 15:34 Creating HTML templates and form for authentication app 24:49 Create a user registration form with Django 33:13 Creating Sign in functionality 42:38 Implement confirmation email functionality for the app 51:02 User registration and email confirmation 00:00 Creating confirmation email logic for user activation 1:09:10 Activate user account via confirmation email 1:17:19 Learn how to create a super user in Django admin panel
Also you created directly templates folder in the root directory. What is the best practice in terms of reusable apps? Creating the static and templates inside the app directory or using your method?
@@AnubhavMadhav Hello Mr Anubhav, Please, how did you call the "user.first_name" in the signin view when there isn't a first_name object from the signin form.. It worked in the signup form cus we had a fname defined in the form but it's not working in the signin function.
@@matchpredictionwithacid9419 Check your mail settings again, make sure that you are using your own account and also "turn on access to less secure apps" of that account.
@@rajibmukherjee3722 I just checked, now it's not available for accounts with 2 Step Verification, in order to use less secure apps with even 2FA accounts, you'll require an application specific password. Search for it and you'll get more details. I hope this helps.
After the signup page i am getting redirected to the same page rather than going to the signin page, even after using "return redirect('home')" and every other things things are same as he did..Any solutions please??
I'm getting an error. Attributerror: 'function' object has no attribute 'filter' While registering a new user after implementation of email functionality
Hey, Anubhav I want to know how to create local host and admin page for my own project already written, I can't run my project in local host can u explain for this???
hi nice video , however I m beginner and got stuck , i manage to install virtualenv file successfully however next step to creating virtual environment when I put file name after virtualenv kiran , i m getting error "C:\Users\USER\Desktop\Webiste>virtualenv kiran 'virtualenv' is not recognized as an internal or external command, operable program or batch file. ..where i m going wrong and there fore I am not able to command script activation also , can you kindly guide
i am getting an error on this line - return render(request, "authentication/signin.html") error - unindent amount does not match previous indent , return can only be used within a function Please Reply
when i click on sign in or sign up buttons i am not taken to the right page. instead of being taken to the signin page after completing the signup form, i am just taken to a page that reads: "Your file couldn't be accessed," and the file directory is C:/signup. what am i doing wrong?
Fabolous Tutorial I got a lot out of it. The email part of the code i had to comment out since it was not letting me access the create user and the admin part. It says something about the token library not being able to be found.
can someone help me? I've tried dozens of migrations and retried the video where it first try if the page is working but all I get is this message "The install worked successfully! Congratulations! You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs." and dont see any changes even though I updated it, help
For more such Projects check out our Playlist: ruclips.net/p/PLqM7alHXFySExPLJSzpKfKe6JO44Qm0qj&si=Tpg_3fu2oZI19FA7
13:11 Very well explained
23:57 35:51 Must
45:51 Gmail verification
Thank you ✨
Thanks a lot ❤
Just for info, force_text has been depreciated in django 4, instead use force_str
Yes, thanks!
what about this one SMTPAuthenticationError at /signup
so where all do we have to make the changes?
9:36
To avoid copying files back to main gfg folder.
Give django-admin startproject gfg . (after project name give a space and dot(.)). it will create only one folder with all files.
Yes💯
That I always use😁
i keep getting this error when i try to run ''ModuleNotFoundError: No module named 'gfg.settings''
can anyone help me with resolving this error?
Dude's a pro at entering his details
Perfect voice perfect step by step explanation no mixing clear idea Thank you so much sir👍
@@AnubhavMadhav
Hello bro!!
Less secure apps is no longer working, Is there any alternative?
Dude your "left-click + alt" key shortcut is a game changer (and I thought the video itself was already great -- this is the cherry on top!)
You're welcome ✨
Excellent explanation brother,
well understood,
and i successfully completed my first project as a beginner with your help
My sincere thanks to,
GeeksforGeeks
and Anubhav brother
for nice explanation..
Thank you so much bro! Happy to help 💖
Please let's link up via email. So you can put me through. I'm facing some challenges on my sign up page
I got an error at signup page,could you send reply to my msg
Finally someone made a python tutorial, I've been looking for it for a long time, thanks brother
Amazing job...I need you to know what you already know, "People like you are simply Blessing to humanity"
Gonna be watching again. THANK YOU!!
Thank you so much ❤️ It means a lot ✨
Thank you so much sir 😭💖💖
Anubhav Madhav, you are the man! This is the best Django Authentication tutorial I've come across anywhere. The only one that has worked for me. I can't thank you enough ma man. Blessings!
Thanks man, and you're welcome!
Bro it showing cannot import name ' force_text' from 'Django.utils.encoding'😢
great tutorial.
Everything is well explained.
My sincere thank you to gfg and Anubhav Madhav.
best lecture for the django login with database and gmail confimation thankyou
Thank you Mukesh! ✨
@@AnubhavMadhav google no longer allows less secure apps settings to turn on 46:00 . i was following the video and doing this project. can i still go throw with this video or is there a workaround?
Django is getting more and more famous damn fast.
Simple and Concise , props gfg !
It's really helpful thanks for making this video.
While running your code I did such improvements, Please check.
-> In email_confirmation.html there is a type error in your tutorial i.e you typed "uid64" instead of "uidb64"
-> And "force_text" is not working for me therefore i used "force_str"
And thanks again for this wonderful and helpful tutorial.
i keep getting this error ModuleNotFoundError: No module named 'gfg.settings'
can anyone help me with resolving this error?
@@oviemennu169 you should put your project-name.settings not gfg.settings . gfg is his project's name
am getting Reverse for 'activate' with keyword arguments '{'uidb64': '', 'token': ''}' not found. 1 pattern(s) tried: ['activate/(?P[^/]+)/(?P[^/]+)\\Z'] using Django v4
I am gettiing the same error. Kindly share if you have solution to this @@zend969
how did you solve it please ? i'm getting the same error
@@zend969
Boss you made my night many people couldnt explain well what i need now is password change
Impressive and commendable. Thank you.
Excellent tutoroial but i see you forgot to mention a step which prevented the HTML text from appearing after you put in the templates folder under authentication. You have to go into the settings under 'dirs' [] and add 'templates'
Thank you so much ✨
Well I mentioned that at 18:37 , you might have missed it no problem😊👍
@@AnubhavMadhav Hello, I tried this and it's still not removing the django page. What might be the problem. Am I overlooking something? Please help
Very excellent tutorial. This is extremely thorough.
Thank you Michael!
Sir please mention the extensions you have used in VS Code for this video. I am not getting some code suggestions for import statements in django in quick fix
very excellent video but one addition to this video is that , template inheritance may be applied for better html handling thought here frontend is not main to teach!!
Wow! This was very helpful, thank you for this video ❤️
Video is so amazing, however it's old. I mean turning ON the less secure apps is getting problem.
google removed less secure apps function, now how to do the email verification?
Sir u found any way
Just enable 2 factor authentication in your Google account and after enabling you will get an option of creating app. Now create a app with any name you like and after that you will get 16 characters password just copy it and paste it in the code(WITHOUT SPACE).
@@lalitagarwal9155hey,I don't see the 'create app' nor the code you are referring to, after enabling the 2-step verification
@@explorewithlainey3935 inside 2 step verification section you will see "App passwords" option just down below of the page.
Just click and make a new app with your preferred name. After this you will get password that's it.
@@explorewithlainey3935 it worked or not please specify so that I can help further..
Yo, I love the way you explained everything 🎉☄️. This video really helped me 💪
Thank you bro, glad to help!✨
@@AnubhavMadhav
Hello Mr Anubhav,
Thank you very much for such an amazing tutorial.
Please I have a question in the sign view function. How did you call the "user.first_name" in the function when we didn't clearly get the details in the form from the user?
thanks much, this saved my day
single login... 9 thousand files on the project...
Perfect tutorial, thanks, but Django likes to reinvent the wheel in every app...
Nice tutorial. If you add FORGET PASSWORD option, that will be great
Good job but sadly outdated to work today
Because Google stopped supporting "Less Secure Apps" feature which prevent me from making my app send Confirmation email.
Now, that I have the idea of how to build up a login, I want to add in CSS to it and make it a full website. I really don't care for the email part to be working at the moment, as I need to learn more about the libraries and the code for it is a bit confusing. Thanks a ton.
You're welcome and all the best✨💯
did u add css bro?
Thank you for the great video by the way.
58:00 Implementation of Token
1:02:00 implementation of mail link
interesting video GeeksforGeeks. I shattered the thumbs up on your video. Maintain up the fantastic work.
Thank you.
is your email verification working
@@parthjain3757 no 😔
Thank you my friend, works very fine
Well explained! Thank you so much !
this is soooo good
done this. worked successfully. Thankyou.
Glad to know! You're welcome.
I got an error at signup page,pls reply to my msg
59:28
45:30
18:31
timestamp to continue
Gmail has removed less secure app access... What to do to complete this task?
Please try to do more Django projects..
Tq so much sir..
@GeeksforGeeks Please upload a video on Django Rest API Creation (DRF).
Thanks alot Man IM enjoying watching this Great work to Geeks For Geeks
Thank you and welcome!
00:00 Learn how to create a login system using Django with email confirmation feature.
07:24 Create a virtual environment to install Django and set up a basic signup and login functionality.
15:34 Creating HTML templates and form for authentication app
24:49 Create a user registration form with Django
33:13 Creating Sign in functionality
42:38 Implement confirmation email functionality for the app
51:02 User registration and email confirmation
00:00 Creating confirmation email logic for user activation
1:09:10 Activate user account via confirmation email
1:17:19 Learn how to create a super user in Django admin panel
Very helpful video. Thanks
Great video, but the "Less secure apps" option no longer exists since May 30th 😓
did u find any alternate way!! m facing the same issue.
@@equalizer1384 same here dude, did u find any way
Same here, any alternative way
nice i am learining the ecomerce project in may24 for gaining knowledge and for developing website
Also you created directly templates folder in the root directory. What is the best practice in terms of reusable apps? Creating the static and templates inside the app directory or using your method?
For reusability, you ccan go for both ways, but having it in root folder will make your work easier.
@@AnubhavMadhav Hello Mr Anubhav,
Please, how did you call the "user.first_name" in the signin view when there isn't a first_name object from the signin form.. It worked in the signup form cus we had a fname defined in the form but it's not working in the signin function.
Thanks for the great explanation.👍👍👍
You're welcome and thank you ✨
Should have added the timeline into the video, it is really confusing to get to the particular part of the video without it
exactly!
instead of taking last name if I want to take age,city as the input how can I store it into same table
Great video, really great efforts
would you be making a video tutorial using JWT cookies and incorporating with mongoDB?
Please give me insight as to how i should integrate it with my Machine Learning Model?
Good video, very helpful and hardly out-of-date
Thank you!✨
@@AnubhavMadhav code is not running properly giving smtp error
@@matchpredictionwithacid9419 Check your mail settings again, make sure that you are using your own account and also "turn on access to less secure apps" of that account.
@@AnubhavMadhav Does Google has this option any more?
@@rajibmukherjee3722 I just checked, now it's not available for accounts with 2 Step Verification, in order to use less secure apps with even 2FA accounts, you'll require an application specific password. Search for it and you'll get more details. I hope this helps.
Amazing video. Waiting for more videos like this 😀
Amazing Video and easy to understand!
thank you, this was very helpful
You're welcome!
Awesome! Thanks a lot 🔥
while running server at 13:11 it gets module error : no module name gfg.settings
plzz reply
I am not getting any email after signing up.
I did all the steps as shown by you.
Can you help me...
those who getting error at "force_text" convert it to "force_str" You will be done....
Yes, thanks!💯
After the signup page i am getting redirected to the same page rather than going to the signin page, even after using "return redirect('home')" and every other things things are same as he did..Any solutions please??
Hi, my html files are not saved as django files as shown in the video & this doesn't allow me to include the csrf_token. How do i fix this?
was the issue solved
Amazing video bro
I'm getting an error.
Attributerror: 'function' object has no attribute 'filter'
While registering a new user after implementation of email functionality
Yeah bro, you should try importing the auth models as mentioned in the video.
This is great. you really did a nice work
Thank you so much!
This is my question not.
I already made a web where the client can input data.
so, is it not part of front end?
Sir the email is not being sent for verification when i signup
Great content!
Keep up the good work. 💯
Thank you so much Akanksha!😊✨
Hey I am not able to set less secure apps with G-Account.Cud you expalind how to do it?It shows policy has changed.
did you found any solution brother?
i got integrity error /signup bro . what can I do for this .please rply bro.
Very helpful!
Thank you sir
Shikwekwe will always break my ribs😂
Whenever I refresh my page after signing in, it shows csrf error. Bit I have already added that csrf code in my html. Please tell me what to do? 45:32
Amazing 🤩
That is my first django project what i am DOING.
Glad to know!✨
@@AnubhavMadhav non lo chiesi
@@Anxyt fatti gli affari tuoi
@@AnubhavMadhav ahahahhah
@@Anxyt 😂
Hey, Anubhav I want to know how to create local host and admin page for my own project already written, I can't run my project in local host can u explain for this???
thanks bro finally did it
Nice Sir, thank you
You're welcome!
Everything is cool but Bhaiya I need my money for using my name in your video😁😁😏😂
Haha!! Yeah sure 😂
hi nice video , however I m beginner and got stuck , i manage to install virtualenv file successfully however next step to creating virtual environment when I put file name after virtualenv kiran , i m getting error "C:\Users\USER\Desktop\Webiste>virtualenv kiran
'virtualenv' is not recognized as an internal or external command,
operable program or batch file. ..where i m going wrong and there fore I am not able to command script activation also , can you kindly guide
very helpful.thanks
You're welcome!
Can you tell why its showing you are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs
i am getting an error on this line - return render(request, "authentication/signin.html")
error - unindent amount does not match previous indent , return can only be used within a function
Please Reply
Indentation error hogi bro
The problem is that Google stopped services for less secure apps so I am unable to generate the email and send
when i click on sign in or sign up buttons i am not taken to the right page. instead of being taken to the signin page after completing the signup form, i am just taken to a page that reads: "Your file couldn't be accessed," and the file directory is C:/signup. what am i doing wrong?
at 18:20 I am getting an error 'TemplateDoesNotExist at /authentication/index.html'
Can someone please help me with this?
Try removing the first '/'
I am also getting this error.
Check if the templates folder is directly inside "authentication" and not inside the "gfg", "migrations", "__pycache__" or "venv" folders.
How about if enter a different email id from this video, does the app will send confirmation email as if you have given your email id in the code?
Fabolous Tutorial I got a lot out of it. The email part of the code i had to comment out since it was not letting me access the create user and the admin part. It says something about the token library not being able to be found.
can someone help me? I've tried dozens of migrations and retried the video where it first try if the page is working but all I get is this message "The install worked successfully! Congratulations!
You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs." and dont see any changes even though I updated it, help
Can the Django Authentication library be replaced with and external authentication service?
What about wrong credentials during login. If we enter wrong credentials then also user is getting login automatically
Excellent
Thanks!
🤘
what extension should i download and what should i do to write {% for message in messages %} ?
django v1.10.0
by Baptiste Darthenay
Beautiful syntax and scoped snip
Dhanyawad apka 🙏