Python Django Pages, URLs & Slugs

  Рет қаралды 6,840

Dave Gray

Dave Gray

Күн бұрын

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn about Python Django Pages, URLs & Slugs in this Django tutorial. We will create individual post pages which are identified by slugs and by named URLs. You will learn how to link with named URLs and slugs as parameters in the URLs.
💖 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...
🔗 KZfaq Playlist for this Django Tutorial Series: • Python Django Tutorial...
Python Django Pages, URLs & Slugs
(00:00) Intro
(00:05) Welcome
(00:29) Getting Started
(01:04) Adding Post Slugs
(03:02) Applying a Named URL
(05:44) Django Path Converters
(06:53) Applying a Slug Path Converter
(08:26) Create a post page view function
(09:27) Passing a parameter with a Named URL
(11:59) Namespacing Named URLs
(14:24) Updating the post page view function
(16:03) Creating a post page template
(19:09) Bonus: Emoji Accessibility
📚 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 Pages, URLs & Slugs tutorial helpful? If so, please share. Let me know your thoughts in the comments.
#python #django #pages

Пікірлер: 25
@coderush24
@coderush24 5 ай бұрын
Hey Dave! Start Django Rest Framework as soon as possible 👍🏻
@dev-akeel
@dev-akeel 5 ай бұрын
Thanks a lot for 20+ minutes. I was very much worried after watching previous few videos. This channel is different from other in the sense that it provides serious content and serious content usually has over 15-20 minutes duration. Everything else (those 10 minute videos) are for views and watch time, but this channel provides value. Thanks a lot dave❤
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 ай бұрын
I just divide up topics like chapters in a book. Sometimes they're short but I hope they all provide value. 😃
@dev-akeel
@dev-akeel 5 ай бұрын
@@DaveGrayTeachesCode yes but usually I see your videos more than or around 30 minutes.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 ай бұрын
@@dev-akeel Yes, they often are. That said, even if they are shorter, I tried to provide value. I just go where the content leads. 😃
@dev-akeel
@dev-akeel 5 ай бұрын
@@DaveGrayTeachesCode BTW I wait for your videos, even though I know next video will come out after a week still I keep on checking your channel, I don't wait for notifications 😀
@venkateshk7413
@venkateshk7413 3 ай бұрын
Hey Dave, started with the first one, and found it really different from a lot of other videos, your series is so easy to understand, a really good one!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 ай бұрын
Great to hear!
@southredmondtoxik1885
@southredmondtoxik1885 4 ай бұрын
I love Django Rest Framework
@DaveGrayTeachesCode
@DaveGrayTeachesCode 4 ай бұрын
I may cover that in a separate series. 🚀
@pluderr3947
@pluderr3947 4 ай бұрын
Hey Dave, I just want to say that these videos has tremendously helped me. I was struggling with Django and gave up and when I saw this on my KZfaq feed I decided to give it a try again. You made me realize how powerful and how quickly you can build up powerful and scalable websites in such a short amount of time. I sincerely thank you and you have just gained a new subscriber. I can't wait to see more of your tutorials so I can start implementing them. Cheers!
@7doors847
@7doors847 5 ай бұрын
Awesome as always Dave! 👍👍
@Kricke87
@Kricke87 5 ай бұрын
Great video content as always, very methodical and understandable. I'm also learning Flask, and I like to see the comparison and similarities between the two 😅 Thanks!
@aftabahmad4773
@aftabahmad4773 5 ай бұрын
Once again thanks a lot, Awesome ❤
@Peacemaker.404
@Peacemaker.404 5 ай бұрын
thank you for your work, great as always.
@danimusbar
@danimusbar 5 ай бұрын
Awesome keep Up Sir..
@jiangdu4060
@jiangdu4060 16 күн бұрын
Welldone!!!
@MatheusCampos-lw9pt
@MatheusCampos-lw9pt 3 ай бұрын
tnx
@devonthomson7069
@devonthomson7069 5 ай бұрын
Another great video. Thanks for all of your content. My skills are coming a long way thanks to you.
@danimusbar
@danimusbar 5 ай бұрын
Please make Tutorial about Elixir and Phoenix
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 ай бұрын
I'm interested! 🚀
@krzysiekkrzysiek9059
@krzysiekkrzysiek9059 5 ай бұрын
So good explenations, thx Dave 👍. Can't wait for more advanced material.
@FabMystery
@FabMystery 5 ай бұрын
Easy to watch and understand . Thanks dave
@saeedkhazalvand4821
@saeedkhazalvand4821 5 ай бұрын
Thanks Dave! Dave , I have a question ? I m doin a mern project with React Vite Tsc . as you better know , define type for data and then create data . in one of my pages when I wanna use my images in that page it doesn work but in others it works . src = products.image
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 ай бұрын
Planning to cover that in the next one!
Python Django Images - How to Upload & Display Images
12:55
Dave Gray
Рет қаралды 8 М.
5 Tips To Write Better Python Functions
15:59
Indently
Рет қаралды 97 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 58 МЛН
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 373 М.
Simplify React and Phoenix using Inertia JS: A quick look
6:46
Code & Stuff
Рет қаралды 2,8 М.
Python Django Forms tutorial
26:54
Dave Gray
Рет қаралды 6 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 430 М.
Python Django Challenge for Beginners with Solution
10:56
Dave Gray
Рет қаралды 4,2 М.
Python or JavaScript - Which One Should YOU Learn?
8:05
Tech With Tim
Рет қаралды 168 М.
NextJS Parallel Routes Explained with a Simple Example
14:04
Dave Gray
Рет қаралды 8 М.