MENU

Fun & Interesting

Python Django Pages, URLs & Slugs

Dave Gray 12,355 lượt xem 1 year ago
Video Not Working? Fix It Now

Web Dev Roadmap for Beginners (Free!): https://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 ➜ https://patreon.com/davegray

⭐ Become a full-stack dev with Zero To Mastery Courses:
- The Complete Python Developer: https://bit.ly/CompPythonDev
- Complete Machine Learning & Data Science: https://bit.ly/CompMachineLearning
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

📬 Course Updates ➜ https://courses.davegray.codes/

🚀 Discord ➜ https://discord.gg/neKghyefqh

☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

👇 Follow Me On Social Media:
GitHub: https://github.com/gitdagray
X: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Blog: https://www.davegray.codes/

🔗 All Resources for this Django Course: https://github.com/gitdagray/django-course

🔗 YouTube Playlist for this Django Tutorial Series: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6NamGNr7dEqzNFEcZ_FAUVX

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: https://www.djangoproject.com/
🔗 Django Model field reference: https://docs.djangoproject.com/en/5.0/ref/models/fields
🔗 Django Path Converters: https://docs.djangoproject.com/en/5.0/topics/http/urls/#path-converters
🔗 Python Official Site: https://www.python.org/
🔗Visual Studio Code Official Site: https://code.visualstudio.com/

👀 Visual Studio Code: https://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

Comment