User registration and authentication in Django

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 129

  • @sheikhakbar2067
    @sheikhakbar2067 2 หลายเดือนก่อน +1

    I wish all instructors could explain complex concepts like authentication in such a simple way! Thank you for this excellent tutorial.

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน

      Thank you so much! Glad that you liked the video!

  • @Tcrrxzz
    @Tcrrxzz 10 หลายเดือนก่อน +4

    I may not often watch this guy's content, but this was ABSOLUTELY AMAZING and UNDERSTANDABLE!!!

    • @CloudWithDjango
      @CloudWithDjango  10 หลายเดือนก่อน

      Thank you so much! I really appreciate your comment! I'm glad that you enjoyed the content!
      All the best to you! :)

  • @developerfonate
    @developerfonate 13 วันที่ผ่านมา +1

    bro thx u are the best i was searching for this kind of explanation for close to 4 days but finally i found youo. really thx alot

    • @CloudWithDjango
      @CloudWithDjango  13 วันที่ผ่านมา +1

      Thank you for your kind words! Of course, my pleasure! Glad that it helped!

  • @OgeIloanusi
    @OgeIloanusi 3 หลายเดือนก่อน +3

    Awesome! The best tutorial I've ever seen on Django! I'm actually following at last! Thank you very much!

    • @CloudWithDjango
      @CloudWithDjango  3 หลายเดือนก่อน

      Thank you so much!! I'm glad that you enjoyed the content! All the best! :)

  • @bannisterrb
    @bannisterrb 7 หลายเดือนก่อน

    Very clean work! Your pacing throughout this video was perfect - no pauses to shill products or promote sponsors. Excellent.

    • @CloudWithDjango
      @CloudWithDjango  7 หลายเดือนก่อน

      Thank you so much! I appreciate your support!

  • @nathanielphelps4387
    @nathanielphelps4387 หลายเดือนก่อน

    I wish I could like this more than once because this tutorial was just what I needed for my school project!

    • @CloudWithDjango
      @CloudWithDjango  หลายเดือนก่อน

      Thank you so much for your kind words! I really appreciate it! Glad that it helped you!

  • @ushared-a-chregion3720
    @ushared-a-chregion3720 2 หลายเดือนก่อน

    A very nice and simple explanation of the whole process and how to setup it in Django! Thanks for your excellent work!

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน

      Thank you very much!! Of course, my pleasure! Glad that you liked it!

  • @cambium0
    @cambium0 9 หลายเดือนก่อน +1

    Flask yesterday, and after this vid (and a few other resources), Django today. Great tutorial.

  • @xzex2609
    @xzex2609 3 หลายเดือนก่อน

    best in every aspects of it. great clarification , super clean code , and most importantly huge font size that is appreciated.

    • @CloudWithDjango
      @CloudWithDjango  3 หลายเดือนก่อน +1

      Thank you so much for your kind words! Glad that you liked the video! Oh definitely, font size is always a pain point for sure. I used to always hate watching tutorials where I needed to zoom in too much haha.

    • @xzex2609
      @xzex2609 3 หลายเดือนก่อน

      @@CloudWithDjango I really like your tutorials , and not always I follow along so the font size let us to see it when you rest from hours of sitting behind the desk.

    • @CloudWithDjango
      @CloudWithDjango  3 หลายเดือนก่อน +1

      Thank you for your support! I'm glad that you enjoy the tutorials! I see what you mean, and I agree with you!

  • @arel5309
    @arel5309 9 หลายเดือนก่อน +1

    You are STAR for IT 🎉 This video will be popular 👋

  • @noelmunyae6540
    @noelmunyae6540 2 หลายเดือนก่อน

    This is the best tutorial ever! Thank you!

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน +1

      Thank you so much for your kind words! I really appreciate it! I'm also glad that you found the tutorial helpful! Of course, my pleasure!

  • @tizianonakamader8177
    @tizianonakamader8177 15 วันที่ผ่านมา

    Incredibly clear explanation, GOD TIER, well done!

    • @CloudWithDjango
      @CloudWithDjango  15 วันที่ผ่านมา +1

      Thank you so much!! Glad that you liked the video!

  • @SusanLama-m6d
    @SusanLama-m6d 7 หลายเดือนก่อน

    It was so easy to learn from your tutorial. Perfect for beginners. I was able to follow your steps in login and authentication. I would loved to watch your tutorials.

    • @CloudWithDjango
      @CloudWithDjango  7 หลายเดือนก่อน

      Thank you so much! I'm glad that it was helpful and easy to follow!

  • @_a_r_un_
    @_a_r_un_ 3 หลายเดือนก่อน

    Sir thnx alot i recently started django your videos are very helpful to me 👍

    • @CloudWithDjango
      @CloudWithDjango  3 หลายเดือนก่อน +1

      My pleasure! Thank you for watching my content! Glad that it's useful to you! All the best! :)

  • @darshilkumar7816
    @darshilkumar7816 11 หลายเดือนก่อน

    Thank you so much , its really underrated channel

    • @CloudWithDjango
      @CloudWithDjango  11 หลายเดือนก่อน +1

      My pleasure! Ah, thank you so much, I really appreciate your comment!

    • @darshilkumar7816
      @darshilkumar7816 11 หลายเดือนก่อน

      @@CloudWithDjango just a doubt, how can I make it so that whenever a new user registers it .. a verification mail is sent to the mail filled in the form for authentication and then the user is marked as active...
      Can you make a video on it??

  • @lmt-1020
    @lmt-1020 7 หลายเดือนก่อน

    Thank you for taking the time to create such great content. I really learn from you! Keep up with the great work.

    • @CloudWithDjango
      @CloudWithDjango  7 หลายเดือนก่อน

      Thank you so much for your kind words. I'm glad that you are enjoying the content! All the best to you!

  • @lszujo
    @lszujo 4 หลายเดือนก่อน

    clearly explained....if you can explain it simply,you must understand it clearly...said somebody somewhere😀

    • @CloudWithDjango
      @CloudWithDjango  4 หลายเดือนก่อน

      Thank you! Haha yes, that is a great quote!

  • @Gleb_Pastushenko
    @Gleb_Pastushenko 10 หลายเดือนก่อน +2

    Hello! At 47:50 I can't understand one confusing thing - why a dot notation auth.login() is used, since you have already imported the login() function as is?

    • @CloudWithDjango
      @CloudWithDjango  10 หลายเดือนก่อน

      Hi,
      That's a good question. You are right, it's not necessary, just a developer preference.

  • @hp7734
    @hp7734 ปีที่แล้ว +2

    Outstanding content, as always!! Thank you.⭐⭐⭐

  • @phinephanotube6793
    @phinephanotube6793 3 หลายเดือนก่อน

    Here is the great appreciation sir

  • @cartoonplanet1880
    @cartoonplanet1880 2 หลายเดือนก่อน

    It is really really helpfully tutorials . I was looking for it

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน

      Thank you so much! I'm glad that it helps and that it was what you were looking for!

  • @arel5309
    @arel5309 9 หลายเดือนก่อน +1

    You are genius THANK YOU I WILL SHARE

    • @CloudWithDjango
      @CloudWithDjango  9 หลายเดือนก่อน

      Thank you! I appreciate the support!

  • @indranipudaruth9341
    @indranipudaruth9341 10 หลายเดือนก่อน +2

    excellent, and thanks.

  • @earlymanager3601
    @earlymanager3601 9 หลายเดือนก่อน

    Great tutorial for beginners

  • @malluvocalist1416
    @malluvocalist1416 3 หลายเดือนก่อน +1

    why do you use django for building website ? can we use other stack like react next , what is the difference between those stacks and django. for big project is django worth. Also i have a doubt the database provided by django is good or do i need to choose postgress and i need to know django uses orm right so we dont want to write queries right did companies choose thses kind of things why do they still stick on writing query. Btw I love your videos I have started project using django and i build a todo app

    • @CloudWithDjango
      @CloudWithDjango  หลายเดือนก่อน

      Hi. Thank you for your kind words and for supporting the channel. We use Django for building a website because the core of the channel is on Django. Yes, you can use stacks like React and Next.js, which are primarily for frontend development, while Django is a full-stack framework that handles both backend and frontend if needed. React is great for building interactive UIs, and Next.js adds server-side rendering for improved performance and SEO. Django is suitable for big projects due to its scalability, built-in admin panel, and features like authentication. While Django uses SQLite by default, switching to PostgreSQL is recommended for larger projects. Django’s ORM lets you avoid writing raw SQL queries, but some companies still use raw queries for complex cases or performance reasons. Starting with a Django todo app is a solid foundation!

    • @malluvocalist1416
      @malluvocalist1416 หลายเดือนก่อน

      @@CloudWithDjango thank you so much. one more doubt what is the purpose of making different apps in same project ? Do i need to create many apps for a single user project I mean without admin etc only one user type

    • @CloudWithDjango
      @CloudWithDjango  หลายเดือนก่อน

      My pleasure! Sure thing! The purpose of creating different apps in a Django project is to organise and separate concerns. Each app focuses on a specific functionality or feature of the project, making the code easier to manage and maintain. For a simple project with only one user type (no admin, etc.), you don’t need to create many apps. You can have just one app for everything if it's small. However, if your project grows in complexity, separating features into different apps helps keep things modular and scalable.
      All the best and good luck to you!

  • @itshero5684
    @itshero5684 ปีที่แล้ว +1

    Amazing tutorial

  • @sidds09
    @sidds09 ปีที่แล้ว +1

    can you also do role based and permissions based authentication.

  • @andredicarlo3310
    @andredicarlo3310 8 หลายเดือนก่อน

    This worked great, thanks! One thing though, how would you protect your view (via the @login-required decorator) if you're using a class based view for your Dashboard page? I can only get it to work on function based views, not class-based, which seems a significant limitation. If anyone knows please enlighten me.

    • @CloudWithDjango
      @CloudWithDjango  8 หลายเดือนก่อน

      Thank you!! To protect a class-based view with the @login_required decorator in Django, you can use the LoginRequiredMixin provided by django.contrib.auth.mixins. Simply inherit from this mixin in your class-based view definition to ensure that only authenticated users can access the view.

  • @arel5309
    @arel5309 9 หลายเดือนก่อน +1

    Can you create video Confirmation by mail at registration😅😁👋

    • @CloudWithDjango
      @CloudWithDjango  9 หลายเดือนก่อน +1

      Thank you for the suggestion!

  • @vedantmayekar2171
    @vedantmayekar2171 8 หลายเดือนก่อน

    How do I get the Login/Register page first when I launch the server instead of the homepage?

    • @CloudWithDjango
      @CloudWithDjango  8 หลายเดือนก่อน +1

      Hi,
      You would need to set the login/register page as the default url with empty strings in the route name as we do the homepage. You can swap around the urls to set the login/register page

  • @navidfalahatchian5373
    @navidfalahatchian5373 7 หลายเดือนก่อน

    Thank you dude. super useful

    • @CloudWithDjango
      @CloudWithDjango  7 หลายเดือนก่อน

      My pleasure! I'm glad that it was useful for you!

  • @siyaneteshome8752
    @siyaneteshome8752 2 หลายเดือนก่อน

    Hi cwd i have project for internship that is worked by using react and django so know it's difficult to connect django to react suggest something that helps me to do my project

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน

      Hi. I'd say just practice as much as you can with many projects that are react and django based. Good luck to you!

  • @AllistairLee
    @AllistairLee ปีที่แล้ว

    Great tutorial. What about when users are authenticated using 3rd party services (Azure AD for example)? How do you integrate that with Django user model so that you can assign them to different user groups within Django?

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Hi Allistair,
      Thank you for your feedback and question.
      I believe that would be quite a challenge, but generally speaking if you want to add in a 3rd party service. You would need to use the following package:
      django-allauth.readthedocs.io/en/latest/
      The above package is specifically used for 3rd party integration. However it is more geared towards social authentication.
      If we are talking more specific about Azure AD. I would suggest looking at the below docs and packages for more clarity:
      django-auth-adfs.readthedocs.io/en/latest/azure_ad_config_guide.html
      pypi.org/project/django-azure-active-directory-signin/
      Good luck!

  • @thekingsproduction8897
    @thekingsproduction8897 ปีที่แล้ว

    Nice tutorial. Can you please create a tutorial on role based and permissions based on authentication.

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Thank you for your feedback and suggestion

  • @omshukla1211
    @omshukla1211 10 หลายเดือนก่อน

    Thanks a lot man!!! You are a saver

  • @yamashita8822
    @yamashita8822 10 หลายเดือนก่อน

    Please please please create a pdf of how you create your django projects step by step, that would be highly appreciated.❤🎉

    • @CloudWithDjango
      @CloudWithDjango  10 หลายเดือนก่อน

      Thank you for your suggestion!

  • @ramerlacida4737
    @ramerlacida4737 10 หลายเดือนก่อน

    its nice but how about the looks of the form, like beautify it =) do you have any guide?

    • @CloudWithDjango
      @CloudWithDjango  10 หลายเดือนก่อน

      Hi,
      Thank you! Yes, you would need to use crispy forms and bootstrap.

  • @lamba_44
    @lamba_44 ปีที่แล้ว

    How do I use the email authentication (one of your previous videos) with this video's registration and authentication?

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Hi,
      I would suggest following the docs of the module that is utilized in the email authentication tutorial.

  • @shadrack3370
    @shadrack3370 10 หลายเดือนก่อน

    thanks a lot . you just helped me a lot. hey do you have any video for django shopping cart project

    • @CloudWithDjango
      @CloudWithDjango  10 หลายเดือนก่อน

      My pleasure! I'm glad that this video helped you.
      Unfortunately, I don't have a video for a django shopping cart project.

  • @9r..visualtreat958
    @9r..visualtreat958 11 หลายเดือนก่อน +1

    Dude. I use the Usercreationform, step by step by watching your video but it didn't display the email form.

    • @CloudWithDjango
      @CloudWithDjango  11 หลายเดือนก่อน +2

      Hi,
      I'd suggest double checking the GitHub source code.

  • @FlutterPythoncombo
    @FlutterPythoncombo ปีที่แล้ว +1

    That was amazing Tutrial thank you very much! Can you do a tutorial on Django-Alluth (Google Sign in ) as well, the problem with all the tutorials on TH-cam is they just talk about the setup but nothing in Depeth, Esp , View, and Template of Django Alluth , cheers

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      My pleasure! I appreciate the feedback.
      Thank you for the good suggestion and for providing context.

    • @chaitanyamulampaka4886
      @chaitanyamulampaka4886 4 หลายเดือนก่อน +1

      Same problem broo

  • @გიორგიხომასურიძე-გ4რ
    @გიორგიხომასურიძე-გ4რ 7 หลายเดือนก่อน

    Thanks! very useful

    • @CloudWithDjango
      @CloudWithDjango  6 หลายเดือนก่อน

      My pleasure! I'm glad that it helped!

  • @Ahmedesmail07
    @Ahmedesmail07 ปีที่แล้ว

    great content again, does it is a correct way to implement allauth for this chapter or it will be more un effiecient way?

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว +1

      Thank you Ahmed! :)
      It will really depend. There aren't exactly right or wrong ways when it comes to authentication.
      The question that you should ask yourself is - what do I really need and does it do the job for me?

    • @Ahmedesmail07
      @Ahmedesmail07 ปีที่แล้ว

      @@CloudWithDjango thank you very much, when I get a job I'll mention that I learned a lot from you ❤️❤️

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      My pleasure!
      Oh thank you so much! That is very very kind of you, but you don't need do that! That being said, I really appreciate all the support! It is deeply appreciated!
      All the best!

  • @briangreenberg153
    @briangreenberg153 7 หลายเดือนก่อน

    Let's say the URL is trying to take me to a page called /summary_report/ but that view for that page is protected using the login_required decorator. I am correctly sent to the login page. However, after logging in, I want to be redirected to the /summary_report/ page where I was originally trying to go. I don't want to be directed to the dashboard Do you have a solution for that? Thanks!

    • @CloudWithDjango
      @CloudWithDjango  7 หลายเดือนก่อน +1

      Hi,
      So what you can do is this:
      Ensure your login URL includes a next parameter that holds the original page's URL. On the login page, capture this parameter in a hidden input field within the login form. In your login view, after successful authentication, check for the next parameter. If it exists, redirect the user to that URL; otherwise, redirect them to a fallback option like the dashboard. This approach ensures users are redirected back to the original page they intended to access after logging in.
      Hopefully that gives you some more insight! Good luck!

    • @briangreenberg153
      @briangreenberg153 7 หลายเดือนก่อน

      @@CloudWithDjango Thank you. I will give it a try! OK, I tried it and it works! Thanks for the great suggestion.

    • @CloudWithDjango
      @CloudWithDjango  7 หลายเดือนก่อน

      No worries! Of course, it's my pleasure! Glad it worked for you!

  • @nandu.kallur
    @nandu.kallur 10 หลายเดือนก่อน

    Pls can you do a tutorial series on django rest framework?

    • @CloudWithDjango
      @CloudWithDjango  10 หลายเดือนก่อน

      Thank you for the suggestion!

  • @ASTRALABSGH
    @ASTRALABSGH 5 หลายเดือนก่อน

    do video for user registration and otp authentication

    • @CloudWithDjango
      @CloudWithDjango  5 หลายเดือนก่อน

      Thank you for your suggestion!

  • @saudalruwili-ck2zr
    @saudalruwili-ck2zr 5 หลายเดือนก่อน

    thank you a lot

  • @chaitanyamulampaka4886
    @chaitanyamulampaka4886 4 หลายเดือนก่อน

    Bro how to style the login pages

    • @CloudWithDjango
      @CloudWithDjango  4 หลายเดือนก่อน

      Hi,
      To style the login pages, you'd need to either use bootstrap or CSS.

  • @SurajKumar-mc9eg
    @SurajKumar-mc9eg 29 วันที่ผ่านมา

    Hey i created one basic crud opt project in which i am adding employees data updating and deleting it and now i want to add registration and login so i created another app inside the same project folder but i got stucked can you please help me out i tried several videos but i didn't worked so please help me out.

    • @CloudWithDjango
      @CloudWithDjango  29 วันที่ผ่านมา +1

      Hi. You can add registration and login by creating an "accounts" app in your Django project. In the views of this app, define a registration view to handle user sign-up and a login view to manage user logins. Use Django’s built-in authentication functions to make it simpler. Then, add the URLs for these views in the accounts app and include them in the main project URLs file. Finally, update your templates to include forms for registration and login, connecting them to the views so users can register and log in seamlessly.

    • @SurajKumar-mc9eg
      @SurajKumar-mc9eg 28 วันที่ผ่านมา

      @@CloudWithDjango thank u so much i will definately try this.

    • @CloudWithDjango
      @CloudWithDjango  28 วันที่ผ่านมา

      My pleasure! Good luck!

  • @skalearners
    @skalearners 9 หลายเดือนก่อน

    Good content

  • @Zinab8850
    @Zinab8850 9 หลายเดือนก่อน

    Thank you so much♥♥

  • @jhalmu
    @jhalmu ปีที่แล้ว

    So this handles automatically crypting and decrypting passwords?

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Hi,
      Yes, Django by default hashes your password with it's selected encryption scheme

    • @jhalmu
      @jhalmu ปีที่แล้ว

      @@CloudWithDjango That's convinient.

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Yes, hence removing the trouble of having to do it ourselves :)

  • @selciVlogs
    @selciVlogs ปีที่แล้ว

    Super🎉

  • @nikhilahirwar984
    @nikhilahirwar984 2 หลายเดือนก่อน

    Hy brother venv is not working on my laptop ,can you solve this error

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน +1

      Hi,
      Please ensure that you've installed python correctly. This is the main reason for error.

    • @nikhilahirwar984
      @nikhilahirwar984 2 หลายเดือนก่อน

      @@CloudWithDjango yes python is correct

    • @CloudWithDjango
      @CloudWithDjango  2 หลายเดือนก่อน

      Unfortunately, this is the only reason that it can really be or because virtualenv has not to installed or configured correctly

  • @inteliconn995
    @inteliconn995 ปีที่แล้ว

    Thanks!