Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
In this Python Django forms tutorial, we will add a custom form to our Django project that creates a new post and uploads an image. This is the final lesson in this Python Django for Beginners series.
💖 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 Forms tutorial
(00:00) Intro
(00:05) Welcome
(00:28) Getting Started
(00:54) Create a Custom Form
(03:10) Add the Custom Form to a template
(07:23) Viewing the New Form
(08:42) Handling Form Submissions
(11:22) Testing the Form Submission
(11:57) Updating the Post Model
(14:56) Student Challenge
(15:56) Updating the Posts List
(16:38) Saving the New Post with an Author
(17:28) Creating Posts with different Authors
(19:01) Final Project Updates & Changes
(25:37) Deployment Thoughts
📚 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 Forms tutorial helpful? If so, please share. Let me know your thoughts in the comments.
#python #django #forms