Ajax username validation. Django project tutorial [8]

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 38

  • @duncanobunge1171
    @duncanobunge1171 Год назад

    the video has been simple, clear and on-point with concept delivery. Great work Cryce..keep it up!!

  • @DcMonsterFlash
    @DcMonsterFlash 4 года назад +1

    It's been now few days since i've started to follow your tutorials because i'm beginning django for a project and i can only say a big thanks you because it really help me to understand the framework a bit better, I have a basic developement level but i'm more into network and cybersecurity stuff so it's always good to have videos like this to help building website fast and clean :)

  • @jorisjansen2892
    @jorisjansen2892 4 года назад

    These highly educative videos only have 1K views. How, you bring so much value!!

  • @jpcodes373
    @jpcodes373 2 года назад

    Your contents are always amazing. Thanks for the good work

  • @sandipmohanty8598
    @sandipmohanty8598 3 года назад

    This is really an informative video. it shows the presenter is quite knowledgeable. thanks for all help.

  • @maxrichard8852
    @maxrichard8852 3 года назад +1

    Great series. I am learning a lot! Thank you!!!

  • @samsilarefin5546
    @samsilarefin5546 2 года назад +3

    VM360:2 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 1
    how to solve it

  • @MihirPande-b6z
    @MihirPande-b6z 5 месяцев назад

    so goooood

  • @jacoporoguzzi7879
    @jacoporoguzzi7879 2 года назад +1

    You are a great Teacher Cryce!!! Super helpful your course. I am stuck at this development phase, but I don't understand what's wrong. Any chance to reach out? or someone in your community can help me?

  • @gobrax
    @gobrax 2 года назад

    What's the program you're using that autoformats your code when you save it in Javascript?

  • @zohraneda9324
    @zohraneda9324 2 года назад

    woow great tutorial thanks a lot.
    Sir, when I type wronge user name it does not show the errors on both console and login page?
    What shoul I do?

  • @ashharmansuri6816
    @ashharmansuri6816 4 года назад

    Wooooww awesome bro ,you are good teacher

  • @ConsulGold
    @ConsulGold 4 года назад

    A high grade tutorial you cant find a similar one on youtube..congrats, following Im becoming a better and better...

  • @Demmynile
    @Demmynile 4 года назад +1

    @Semy Colon after running the api passed but the styling is not showing .

  • @fun8643
    @fun8643 3 года назад

    Hey, Great Video. Thanks for great content
    However at 23:43 you created a div with class invalid-feedback and in the register.js file, you used invalid_feedback at 24:23?
    Then, my usernameField.classList.add("is-invalid") is not working ie not setting it to red
    Any way you can help me out.
    Looking forward to your response.
    Thanks for grooming the next generation of programmers

    • @ches_ter6842
      @ches_ter6842 3 года назад +1

      check if you use ` (backtick) instead of ' (quotes)

  • @olumideomotosho6661
    @olumideomotosho6661 3 года назад +1

    this is lovely, but mine is not showing red, its just showing checking

  • @gobrax
    @gobrax 2 года назад +1

    Also, for the feedBackArea.innerHTML = `${data.username_error}`; section, it may be helpful to include a notation to the other viewers that those quotes surrounding the paragraph tags are backticks, not single quotes. Great video nevertheless.

  • @saatwik6520
    @saatwik6520 4 года назад

    Great video! Thank you. Can you make a video in which you can check the strength of the password when it's being typed?

  • @codedjango
    @codedjango 4 года назад

    Awesome 👍...but don't you think if we are using csrf_exempt decorator, we are compromising on the security that django already provides by using csrf token? I am sure fetch api should be able to send csrf token too to the django backend...and if that is the case then we need not use csrf exempt decorator...Is that possible? Please advise

    • @crycetruly
      @crycetruly  4 года назад +1

      Yeah it's very much possible. Ill cover that concept in the Ajax search video. Coming up.

    • @codedjango
      @codedjango 4 года назад

      @@crycetruly Thank you for all your efforts for making the series. Much appreciated :)

    • @crycetruly
      @crycetruly  4 года назад +1

      Welcome

    • @codedjango
      @codedjango 4 года назад

      I think if you replace with this "register.js" (as above), the csrf_token exempt decorator would not be required....of course your "usernameField" will differ because you choose different id on the html form. But I tried this with above code and it worked. Thank you for this excellent series :)

    • @ConsulGold
      @ConsulGold 4 года назад

      Its for learning /testing purposes real world app you cant use csrf_exempt decorator

  • @ikechukwuezechimere
    @ikechukwuezechimere 4 года назад

    Please is it that you won't convert it to rest api before its stars posting cis am stuck with the postman

    • @ikechukwuezechimere
      @ikechukwuezechimere 4 года назад

      Sir I need your help please

    • @crycetruly
      @crycetruly  4 года назад

      @@ikechukwuezechimere hey, could you describe your problem, more

  • @sontustripura3133
    @sontustripura3133 4 года назад

    Error comes, Uncaught (in promise) syntexerror :Json.parse : unexpected character in at line 1 column 1 of json data...
    I wrote All same code like you.. But error come
    How to fix it? Please reply me

    • @abheysharma
      @abheysharma 4 года назад

      @yash adesara hey, I came across the same error. Could you elaborate more on this?

    • @shrishtydhiman9889
      @shrishtydhiman9889 3 года назад

      @@abheysharma did you find the solution

  • @securite8893
    @securite8893 2 года назад

    User.objects.filter(username=username).exist()
    help me to check if the package and parcel tracking keys exist while scanning a barcode
    thank you so much sir

  • @ashharmansuri6816
    @ashharmansuri6816 4 года назад +1

    Postman error program error

  • @bisheshtalukdar2163
    @bisheshtalukdar2163 Год назад

    i think this will be good instead of doing it above
    if(data.username_error){
    usernameField.classList.add("is-invalid");
    feedBackArea.style.display = "block";
    feedBackArea.innerHTML = `${data.username_error}`
    }
    if(data.username_valid){
    usernameField.classList.remove("is-invalid");
    feedBackArea.style.display = "none";
    }

  • @reynaldsampelo3527
    @reynaldsampelo3527 2 года назад

    thank you cryce