Python Django User Authorization tutorial
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...
🔗 KZread 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
Пікірлер: 32
Excellent work Dave.Thx 👌
Please consider doing a course on integrating Next.js with Django for building full-stack applications (both client- and server-side rendering).
@NitinRanganath
3 ай бұрын
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.
Great and love this
this video really helped me a lot, thank you sm
@DaveGrayTeachesCode
2 ай бұрын
Glad it helped!
Thanks you for your help
@DaveGrayTeachesCode
3 ай бұрын
You are welcome
Thank you for the great content . once i start your course i will lose tack of my time. Fallen love with your courses.
@DaveGrayTeachesCode
3 ай бұрын
Happy to hear that!
Great. Thanks for sharing
@DaveGrayTeachesCode
3 ай бұрын
You're welcome!
Thanks again Dave ❤
@DaveGrayTeachesCode
3 ай бұрын
Welcome!
Hello sir, Can we expect a detailed TensorFlow course like redux, Mern/Next, Python?
thanks sir !😃
@DaveGrayTeachesCode
3 ай бұрын
Most welcome
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 🎉
The great content.
@DaveGrayTeachesCode
3 ай бұрын
Thanks!
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!
@DaveGrayTeachesCode
3 ай бұрын
Thank you for the requests and the support!
❤❤❤❤
😂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.
What are we gonna do by learning django etc!!? AI is gonna replace us soon. Everybody is saying that. I lost all hope.
@DontP3di
3 ай бұрын
Then get your maritime license and go work at sea. AI wil not get there too much within next 50 years.
@King311___
3 ай бұрын
@@DontP3di work at sea? You mean like merchant navy or something else?
@dakoderii4221
3 ай бұрын
Calculators put mathematicians out of work in the 70's. 🤔
@King311___
3 ай бұрын
@@dakoderii4221 lol so not true
Hey man, when should be expect the full course version of this series?
@DaveGrayTeachesCode
3 ай бұрын
Getting near the end of the series now.
@kouroshrstn
3 ай бұрын
@@DaveGrayTeachesCode can't wait to finish this course