Python Django User Authorization tutorial

Sdílet
Vložit
  • čas přidán 28. 06. 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    In this Python Django user authorization tutorial, we will protect pages from users who are not logged in. In addition, we will add a logout process and conditionally display user choices in the navbar.
    💖 Support me on Patreon ➜ / davegray
    ⭐ Become a full-stack dev with Zero To Mastery Courses:
    - The Complete Python Developer: bit.ly/CompPythonDev
    - Complete Machine Learning & Data Science: bit.ly/CompMachineLearning
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    🚀 Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    GitHub: github.com/gitdagray
    X: / yesdavidgray
    LinkedIn: / davidagray
    Blog: www.davegray.codes/
    🔗 All Resources for this Django Course: github.com/gitdagray/django-c...
    🔗 CZcams Playlist for this Django Tutorial Series: • Python Django Tutorial...
    Django Login Form and User Authentication
    (00:00) Intro
    (00:05) Welcome
    (00:25) Getting Started
    (00:53) Lesson Goals
    (01:12) Adding a logout
    (07:32) Adding a New Post page
    (13:01) Applying User Authorization
    (15:18) Using the "next" redirect value
    (20:12) Conditional Navbar Links
    📚 Tutorial References:
    🔗 Django Official Site: www.djangoproject.com/
    🔗 Django Model field reference: docs.djangoproject.com/en/5.0...
    🔗 Django Path Converters: docs.djangoproject.com/en/5.0...
    🔗 Python Official Site: www.python.org/
    🔗Visual Studio Code Official Site: code.visualstudio.com/
    👀 Visual Studio Code: code.visualstudio.com/
    Was this Python Django User Authorizaton tutorial helpful? If so, please share. Let me know your thoughts in the comments.
    #django #user #auth

Komentáře • 32

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 Před 3 měsíci

    Excellent work Dave.Thx 👌

  • @banka990
    @banka990 Před 3 měsíci +2

    Please consider doing a course on integrating Next.js with Django for building full-stack applications (both client- and server-side rendering).

    • @NitinRanganath
      @NitinRanganath Před 3 měsíci +1

      Yes please. A guide on Django JWT auth + Auth.js (NextAuth v5) and using React Query with Django REST framework would be really helpful. There's so little resources on how to do it the right way online.

  • @kumargupta7149
    @kumargupta7149 Před 3 měsíci

    Great and love this

  • @sameug
    @sameug Před 2 měsíci

    this video really helped me a lot, thank you sm

  • @mohammedbahnasy9870
    @mohammedbahnasy9870 Před 3 měsíci +1

    Thanks you for your help

  • @tejassuryanarayanamudragad8701

    Thank you for the great content .
    once i start your course i will lose tack of my time.
    Fallen love with your courses.

  • @DontP3di
    @DontP3di Před 3 měsíci

    Great. Thanks for sharing

  • @aftabahmad4773
    @aftabahmad4773 Před 3 měsíci

    Thanks again Dave ❤

  • @ahummbrahmasmi
    @ahummbrahmasmi Před 3 měsíci +1

    Hello sir, Can we expect a detailed TensorFlow course like redux, Mern/Next, Python?

  • @user-ce9lk3yg4u
    @user-ce9lk3yg4u Před 3 měsíci

    thanks sir !😃

  • @user-ij1fx9dq4q
    @user-ij1fx9dq4q Před 3 měsíci

    Keep doing this dave Im finishing off the phyton and I will watch Django for framework, and then you can hire me as your junior backe end jk 🎉

  • @fscubetech7219
    @fscubetech7219 Před 3 měsíci +1

    The great content.

  • @NitinRanganath
    @NitinRanganath Před 3 měsíci

    Thanks for all the content you put out. Would it possible to cover these topics in the future please?
    Authentication and authorization with Django JWT auth + NextAuth v5 + managing access and refresh tokens for calling APIs
    I'm confused on how to manage these tokens on Next.js and create an axios instance that automatically adds the authorization header with the access token while calling APIs from RSCs and client components.
    Thank you once again!

  • @smsaikat9329
    @smsaikat9329 Před 3 měsíci

    ❤❤❤❤

  • @dakoderii4221
    @dakoderii4221 Před 3 měsíci

    😂Some of those unsubbed views are from me. I watch videos on a computer I'm not logged into sometimes. I'll get a preview of the video then later go watch and code on my main rig where I am logged in.

  • @King311___
    @King311___ Před 3 měsíci

    What are we gonna do by learning django etc!!? AI is gonna replace us soon. Everybody is saying that. I lost all hope.

    • @DontP3di
      @DontP3di Před 3 měsíci +2

      Then get your maritime license and go work at sea. AI wil not get there too much within next 50 years.

    • @King311___
      @King311___ Před 3 měsíci

      @@DontP3di work at sea? You mean like merchant navy or something else?

    • @dakoderii4221
      @dakoderii4221 Před 3 měsíci +1

      Calculators put mathematicians out of work in the 70's. 🤔

    • @King311___
      @King311___ Před 3 měsíci

      @@dakoderii4221 lol so not true

  • @hellokevin_133
    @hellokevin_133 Před 3 měsíci

    Hey man, when should be expect the full course version of this series?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 3 měsíci +1

      Getting near the end of the series now.

    • @kouroshrstn
      @kouroshrstn Před 3 měsíci

      @@DaveGrayTeachesCode can't wait to finish this course