Python Django Forms tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 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...
    🔗 TH-cam 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

ความคิดเห็น • 35

  • @_Sparrowsky
    @_Sparrowsky 3 หลายเดือนก่อน +3

    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.

  • @tomislam
    @tomislam 3 หลายเดือนก่อน

    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.

  • @kumargupta7149
    @kumargupta7149 3 หลายเดือนก่อน +3

    Love your consistency too along with structured and short contents

  • @williamradhuber3058
    @williamradhuber3058 20 วันที่ผ่านมา

    Fanatic course. I appreciate the level of detail.

  • @MuhammadBilal-ry5rb
    @MuhammadBilal-ry5rb 3 หลายเดือนก่อน +3

    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 ☺

  • @LaydenLBlackwell
    @LaydenLBlackwell หลายเดือนก่อน

    Whooo! knocked it out in a couple days. Prolly my favorite programming tutorial I've followed. Thanks!

  • @christopheanfry2425
    @christopheanfry2425 3 หลายเดือนก่อน

    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!!!

  • @Codewithshameel
    @Codewithshameel 3 หลายเดือนก่อน +1

    You are best teacher in the world 💖💖

  • @KanizFatema-z6g
    @KanizFatema-z6g 12 วันที่ผ่านมา

    Hi Dave. Thanks for this amazing python django course for beginners. I eagerly wants to know that is there any upcoming advance python django course for us?? 🤩

  • @dev-akeel
    @dev-akeel 3 หลายเดือนก่อน +2

    Hey dave congratulations 🎉
    What is next?
    FastAPI (maybe)?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 หลายเดือนก่อน +2

      Good request! So many things I still want to cover!

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 3 หลายเดือนก่อน

    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?

  • @anjaneyulub2529
    @anjaneyulub2529 3 หลายเดือนก่อน

    Thank you Dave ❤ you're awesome but what next?😅

  • @kouroshrstn
    @kouroshrstn 3 หลายเดือนก่อน

    Awesome Tutorial. Thank you so much
    How many more episodes are left to have a Django full course?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 หลายเดือนก่อน +2

      As noted at the end of this video, this is the last one for this beginner's series.

  • @user-nj9pz7ru2c
    @user-nj9pz7ru2c 3 หลายเดือนก่อน

    That's a wonderful guide, what you can recommend to continue learning?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 หลายเดือนก่อน +1

      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.

    • @user-nj9pz7ru2c
      @user-nj9pz7ru2c 3 หลายเดือนก่อน

      ​@@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

  • @gwynedd-1
    @gwynedd-1 19 วันที่ผ่านมา

    my new posts page gives an error and I have gone blind looking for why LOL. I will review again after a rest

  • @lemoonadee
    @lemoonadee 3 หลายเดือนก่อน

    Hi dave are you planning to make springboot course?

  • @marinbb6946
    @marinbb6946 3 หลายเดือนก่อน

    What keyboard and mouse are you using for coding

    • @dev-akeel
      @dev-akeel 3 หลายเดือนก่อน

      Red mouse and blue keyboard. He brought both of them in his childhood so you won't see those in 21th century.

    • @marinbb6946
      @marinbb6946 3 หลายเดือนก่อน +1

      @@dev-akeel yeah well i was interested in the model itself not really the color but thanks for the info 🤣

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 หลายเดือนก่อน +3

      😆 this is not correct but highlights how old you must think I am lol

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 หลายเดือนก่อน +2

      I am using an Amazon basics wireless mouse and a Logitech MK270 wireless keyboard. It can be clicky, but I like it.

    • @dev-akeel
      @dev-akeel 3 หลายเดือนก่อน

      @@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.