Django Forms - Save Form Data to Database with Model Forms

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 17

  • @codebreakthrough
    @codebreakthrough  2 роки тому +3

    (FREE) Early access course notes - calcur.tech/backend-notes
    Links:
    Get the code here - github.com/CalebCurry/django-modelform
    Previous video - ua-cam.com/video/fsVY66QBhwM/v-deo.html
    Timestamps:
    00:00 - Introduction
    03:10 - Create a form
    04:44 - Meta class
    05:27 - Instance of the form
    06:34 - Display the form in HTML
    08:55 - Save model to Database

  • @koladebadmus7055
    @koladebadmus7055 2 роки тому +4

    This is super good, extremely concise

  • @eddyateye810
    @eddyateye810 2 роки тому

    you have no idea how this saved me! God bless your channel

  • @asisrpjmtj
    @asisrpjmtj 2 роки тому

    Nobody, called this out, that you need to name/define fields again in the ModelForm also .... I had only called out Mera Class, knowing that Model Fields are defined ... But data was not saving, ..... It got me hanging for 2 days, before you saved me .... thanks Caleb

  • @LukeOlafP
    @LukeOlafP 10 місяців тому

    Great tutorial, and you may have the most calming voice I have ever heard!

  • @adilet3278
    @adilet3278 2 роки тому +2

    broo, that worked, thank you. Enctype="multipart/form-data". Honestly i didn't even expect this was the problem, but it helped) thanks

  • @louwrentius
    @louwrentius 2 роки тому +2

    Thank you for this tutorial, it was exactly what I needed, nothing more, nothing less and very well done.

  • @not_anth
    @not_anth 4 місяці тому

    Thank you, Caleb!

  • @aannookhan2868
    @aannookhan2868 2 роки тому +1

    We gain every time something great from u

  • @sylviemutuyimana7764
    @sylviemutuyimana7764 2 роки тому

    your tutorials are on point and easy to understand👌

  • @ajin6180
    @ajin6180 Рік тому

    Thank you!!! You help my work project

  • @stepvizzy
    @stepvizzy 2 роки тому

    Thanks you so much Caleb. This video was very helpful.

  • @kuroxell
    @kuroxell Рік тому

    Thank you!

  • @PhabloTavaresPaixão
    @PhabloTavaresPaixão Рік тому

    What if I want to display the form with data from the database? for instance, I want to create a form that have radio buttons, and the label for each radio button have text that come from a Model. Can I do this? (not a native speaker, sorry for grammar mistakes)

  • @mrm4691
    @mrm4691 2 роки тому

    Hi Caleb,
    Can you do a video on future of django, I've heard that web 3.0 is taking over web 2.0. I mean block chain technology.
    Is that really true ? Will django become unneeded?

  • @joshventura4761
    @joshventura4761 2 роки тому

    Caleb ur so handsome :D

  • @tabmax22
    @tabmax22 2 роки тому

    source code?