Python Django Forms tutorial
Vložit
- čas přidán 25. 06. 2024
- Web Dev Roadmap for Beginners (Free!): 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 ➜ / 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...
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: 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 Forms tutorial helpful? If so, please share. Let me know your thoughts in the comments.
#python #django #forms
The best tutorial django I've ever seen. There is no other on YT like that and no on Udemy either. Great JOB and thanks.
Fanatic course. I appreciate the level of detail.
Whooo! knocked it out in a couple days. Prolly my favorite programming tutorial I've followed. Thanks!
Great to hear!
Hi, Sir Dave
Thank you so much for your priceless lectures again and congratulations on 400 video lectures in this platform and I'm very happy your subscribers increase on daily basis you deserve many more Sir I'm daily following your lectures and always waiting for your videos.🙂
Huge respect and love from Pakistan ☺
Thank you!
Love your consistency too along with structured and short contents
Thank you!
Thank you Dave. Followed through the entire tutorial playlist in one go. I will be revisiting soon and hopefully I'll get better at it. I learn best by doing.
Great job!
You are best teacher in the world 💖💖
Thank you for the kind words!
Hey dave congratulations 🎉
What is next?
FastAPI (maybe)?
Good request! So many things I still want to cover!
Thank you Dave ❤ you're awesome but what next?😅
Amazing serie, learnt so much!!! As you mentioned at the end some changes to be prepare to production would have been great to set up environment variables with a gitignore files and a .env file as we have the secret key and the db url, in the settings.py. Thanks anyway amazing job!!!
Good notes! And you're welcome!
Awesome Tutorial. Thank you so much
How many more episodes are left to have a Django full course?
As noted at the end of this video, this is the last one for this beginner's series.
Comment before viewing. The reason is obvious ✌ I'm waiting for class-based views and more advanced stuff. What Vscode theme do you use Dave?
That's a wonderful guide, what you can recommend to continue learning?
Dennis Ivy and Tech With Tim both have good Python & Django tutorials if you want to go further. I'll be covering the Django REST Framework in the future as well as other Python tutorials, too.
@@DaveGrayTeachesCode I tried to load project on to the hosting? it wirks but can't see the css and images. It seams the problem is in static files
Hi dave are you planning to make springboot course?
No immediate plans for that
What keyboard and mouse are you using for coding
Red mouse and blue keyboard. He brought both of them in his childhood so you won't see those in 21th century.
@@dev-akeel yeah well i was interested in the model itself not really the color but thanks for the info 🤣
😆 this is not correct but highlights how old you must think I am lol
I am using an Amazon basics wireless mouse and a Logitech MK270 wireless keyboard. It can be clicky, but I like it.
@@DaveGrayTeachesCode Does it make any difference? Using a decent mouse and keyboard vs premium?
Just wanna know because I have always used mid range and I feel they are pretty good.