Python Django Forms tutorial

Sdílet
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

Komentáře • 33

  • @_Sparrowsky
    @_Sparrowsky Před 2 měsíci +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.

  • @williamradhuber3058
    @williamradhuber3058 Před 10 hodinami

    Fanatic course. I appreciate the level of detail.

  • @LaydenLBlackwell
    @LaydenLBlackwell Před 12 dny

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

  • @MuhammadBilal-ry5rb
    @MuhammadBilal-ry5rb Před 3 měsíci +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 ☺

  • @kumargupta7149
    @kumargupta7149 Před 3 měsíci +3

    Love your consistency too along with structured and short contents

  • @tomislam
    @tomislam Před 3 měsíci

    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.

  • @Codewithshameel
    @Codewithshameel Před 3 měsíci +1

    You are best teacher in the world 💖💖

  • @dev-akeel
    @dev-akeel Před 3 měsíci +2

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

  • @anjaneyulub2529
    @anjaneyulub2529 Před 2 měsíci

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

  • @christopheanfry2425
    @christopheanfry2425 Před 3 měsíci

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

  • @kouroshrstn
    @kouroshrstn Před 3 měsíci

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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 3 měsíci +2

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

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 Před 3 měsíci

    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?

  • @user-nj9pz7ru2c
    @user-nj9pz7ru2c Před 3 měsíci

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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 3 měsíci +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 Před 3 měsíci

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

  • @lemoonadee
    @lemoonadee Před 3 měsíci

    Hi dave are you planning to make springboot course?

  • @marinbb6946
    @marinbb6946 Před 3 měsíci

    What keyboard and mouse are you using for coding

    • @dev-akeel
      @dev-akeel Před 3 měsíci

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

    • @marinbb6946
      @marinbb6946 Před 3 měsíci +1

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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 3 měsíci +3

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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 3 měsíci +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 Před 3 měsíci

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