Learn Django 3 - Build a User Authentication System - Building a Simple Blog Series Part 8

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

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

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

    DUDE - AttributeError: 'AccountActivationTokenGenerator' object has no attribute 'create_token' WORST TUTORIAL EVER. ANYONE NEW WATCHING DON'T WASTE YOUR TIME

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว

      Thanks again Jessica.

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

      @@veryacademy Hi! I was about to start this tutorial, but saw this comment, which you have pinned.
      What should students do with regards to regards to this?
      AttributeError: 'AccountActivationTokenGenerator' object has no attribute 'create_token'
      Thank you!
      By the way, I really like your tutorials.

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว

      @@juanguirao Hi Juanjo. I haven't taken a look at this just yet, maybe just an issue with updates to the packages. I have asked the community about me taking down these order tutorials that I am not supporting anymore - most people said to leave them up as they can still be valuable. If you reply to this message I will take a look at the code if you like and see what the problem is.

    • @imadust
      @imadust 2 ปีที่แล้ว

      @Droopy Laggy figure out yourself you bum, stop waiting on someone to solve your problems. So entitled...

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

    Yet another excellent tutorial Zander!

  • @code-snippets
    @code-snippets 2 ปีที่แล้ว

    I really want to thank you. I haven't got any error so far, everything is working fine, but above all, I find all this information very useful for customizing authentication in django.

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

    It's very Awesome ..... your article very awesome.....

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Thank you so much 😀

  • @goodlearner2379
    @goodlearner2379 4 ปีที่แล้ว +3

    Amazing work...you’re the coolest teacher I ever had 😊

    • @veryacademy
      @veryacademy  4 ปีที่แล้ว

      Well, you are the coolest student I have every had 😊

  • @yasayah7289
    @yasayah7289 2 ปีที่แล้ว

    Thank you so much for sharing your knowledge, experience, and hard work. Could you suggest a registration/login/auth tutorial that, at it's conclusion, would be production ready? Thx again mate.

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

    hi sir, nice explanation with smooth voice easy to understand- sir i can't update user details (profile)

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

      Hi Venkatvenkatmanik, sorry it is difficult to help you with that information, there really could be many issues. Please keep trying, take it step by step - and do some tests at each point. Please also use the code repository to help you.

    • @venkatvenkatmanik
      @venkatvenkatmanik 4 ปีที่แล้ว

      @@veryacademy tq sir

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

    Great video, thank you!
    I was a bit confused with two account/ paths, but you explained it well.
    On that login.html, when i try to login and make a mistake in order to test the errors, i get two of them printed out on the screen. One that i typed info the page and another: "Please enter a correct username and password. Note that both fields may be case-sensitive."
    Do you have an advice on how to delete or edit that error into our {% if form. errors% }?
    Thanks again!

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

      Thanks Tomislav, appreciate the feedback. Generally I showed 2 methods to display errors - {% if form.errors %} for a general capture and more specific {% if field.errors %} On the login page from memory there are a few different options where errors might pop up especially if you use the form.errors. You could remove the form.errors and place individual specific field.errors, that's all in the template. If else take a look the registration form entry in the account form.py page for some examples and you could adapt more specific /control errors in the form.

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

      Just to add - this tutorial today - th-cam.com/video/Ae7nc1EGv-A/w-d-xo.html takes the user model to the next level - would be interesting now to implement that into the system. I will do another more in-depth user authentication in a while to further this progress, security and completeness.

    • @TomislavMiletic
      @TomislavMiletic 4 ปีที่แล้ว

      ​@@veryacademy Thank you, i will try that :)

    • @TomislavMiletic
      @TomislavMiletic 4 ปีที่แล้ว

      On 1:38:00 when you try to update the info without changing the email, error shows up "allready exists", but it is your email...

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

    One question. Can I use this approach if I built a custom user model?

    • @veryacademy
      @veryacademy  4 ปีที่แล้ว

      You can indeed use custom user models - that isn't a problem. You would define the custom model in settings so Django would know about it.

  • @code-snippets
    @code-snippets 2 ปีที่แล้ว

    Well, it seems there is a problem with the code, it is curious, I'm using the repository for Part 8, and after installing requirements, when registering, the verification link send me to Page not found, it doesn't recognize the route. Anyway, so far I got an idea of how to implement it, thanks again!!

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

    i have a question : its been a month now since i started learning django , i did some projects and i have a general understanding of how everything works .. im planning on doing my graduation project with djnago, i have 20 days before i start working on it, what is the next step now to do, should i continue doing project what do you recommend me doing now ? btw love your channel it helped me alot in the past month

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

      Hi Potatoe,
      What is important at this point in regards to your graduation project is that you have a good graduation project. You can learn what you need once you start the project if you have any knowledge gaps and then you have the rest of your career to learn the rest.
      I am just speaking openly, not knowing anything about you or your project so just ignore if this doesn't make sense or is not relevant. A graduation project you want to think about not only solving a problem but try and think about how you can do something that improves upon a theory or technique to add value to the existing body of knowledge. So, yes make a project with Django, yes don't re-invent the wheel, but, be mindful that you want to show not only your development skills but also academic skills. That might sound a bit cryptic. I would say a good development project is one which tries to solve a problem which is unique or challenges known knowledge methods and practices. I would say for example avoid making software that has already been made 100 times before - try and find a new angle.

    • @potatoesama5789
      @potatoesama5789 3 ปีที่แล้ว

      Thank you for replying sir, I was focusing too much on learning Django than thinking for an idea or a problem to solve for my project, I still have not thought about one yet and I will take your advice while picking one , and as you said i have the rest of my career to make that knowledge gap smaller... the important thing for now is to find that idea and learn what is necessary to solve it . Thank you for the help :)

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

    truly great tutorial ... :)

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

    Awasome contact 👌

  • @valentim-aires
    @valentim-aires 4 ปีที่แล้ว +1

    Great content! Do you have plans of making a "Learn Django Rest Framework (DRF)"?

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

      Hello João. I realise that and I would probably get more views if I just focused on DRF, looking at all the search stats just emphasises that this is what people want too. It will be a big part of the Django content in future tutorials. I am a little restricted at the moment with time building content, doing my best to keep a steady line of tutorials and when possible bursting out more. I am also behind the scenes slow building up a bigger support and delivery framework for this channel/brand with a website and mobile application. I really wished there was just more time in the day! This blog series will also have DRF in up and coming tutorials. Although this is just a simple blog - I want this series to include everything you could imagine.

    • @valentim-aires
      @valentim-aires 4 ปีที่แล้ว +1

      veryacademy Thank you for the answer! I understand it. When you got more time to start a new DRF series, I’ll be here to watch. You’re doing great! :)

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

      Thank you!

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

    accounts/views.py has a search function(with Q) from blog/views.py in Part8 repo
    Is it intentional?

    • @veryacademy
      @veryacademy  4 ปีที่แล้ว

      Hey, I have been dropping in Q here and there, still to do the tutorial dedicated to it. Q can be used for complex and simple queries. Sorry am at work I will look when I can in the video and answer if it was intentional

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

    In template C:\Users\camo7002\Desktop
    ew-blog\venv\lib\site-packages\django\contrib\admin\templates
    egistration\password_reset_email.html, error at line 6
    Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name.
    Do you know why it reverse_lazy me to django/contrib/admin/template ? @very Academy

  • @yaserpy
    @yaserpy 3 ปีที่แล้ว

    Import "six" could not be resolved from source .. any one can help me ..

  • @Chocolanay
    @Chocolanay 4 ปีที่แล้ว +3

    I am laughing so hard at the "still doesn't work" part. Always has been so relatable. 😂

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

    Nice :)

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

      Hey, thank you again for your ongoing support - it really does help this channel and gives me motivation to find more time in the day to dedicate more time to this. Thank you!

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

    this does not work and source code is also not working ....in the source file after submitting registration form is says page not found plz help

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Looking now...

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      Ok, so I just pulled down the repo from GitHub for this and tested it. I changed the requirements file so that it does cause the pillow install error
      1. Extract to folder
      2. Open with visual studio code or whatever
      3. py -m venv venv
      4 venv\Scripts\activate
      5. pip install -r requirements.txt
      6. py manage.py runserver
      This works for me - tested the login/logout/signup/edit details - all ok.

    • @alkfalfnsflgjslfj2127
      @alkfalfnsflgjslfj2127 3 ปีที่แล้ว

      @@veryacademy login and logout works but register doesnt the user is registered but status doesnt turn on

    • @alkfalfnsflgjslfj2127
      @alkfalfnsflgjslfj2127 3 ปีที่แล้ว

      @@veryacademy and is this the best way of letting users create their acount in our website ?

    • @veryacademy
      @veryacademy  3 ปีที่แล้ว

      You should see in the console an email link when the user registers - use that link - that activates the user. This is the default Django way - it can be secure enough as long as you also follow all of the other security measures.