Try DJANGO Tutorial - 23 - Django Model Forms

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024
  • Try DJANGO Tutorial series is here to teach you Django bit by bit.
    Playlist: • Try DJANGO Tutorial Se...
    Code: github.com/cod...
    Subscribe: joincfe.com/you...
    Pro: kirr.co/ni5fia

Комментарии • 85

  • @waynevanson277
    @waynevanson277 5 лет назад +1

    Mate, a godsend. I appreciate how you're showing what needs to be done without explaining too much then later on you'll explain how all the elements connect.

  • @ks5728
    @ks5728 3 года назад

    i was just not getting model forms and databse right ...but u made it so easier....got me saved...thank you so much..

  • @dangeankit
    @dangeankit 6 лет назад +6

    Great I request you don't stop to make this series i'm impatient to your every video. 🙏

  • @tripathi5174
    @tripathi5174 4 года назад

    after watching your videos , i have started to regret that i have wasted quite some time watching others videos , but could not reach out to yours, but thank god i am here .

  • @buraknml7178
    @buraknml7178 6 лет назад +13

    Keep up the good work! Your videos help beginners a lot, i refer them to people who want to start . :)

  • @jean-jacquessmit9981
    @jean-jacquessmit9981 5 лет назад

    This was great, short and clear explanation of the topic🤓 great to see the "errors" realtime so we know what to expect.

  • @garyharney3764
    @garyharney3764 4 года назад

    Thanks a lot. Best tutorials on youtube.

  • @manachor9966
    @manachor9966 5 лет назад

    you explained it very good , for those who are new on this channel , if you stuck just google it and keep watching his vedios , he explain it quick and easy way , not other channel you waste time in just saying subscribe subscribe subscribe , great work pure experience .

  • @WellingtonNadson
    @WellingtonNadson 5 лет назад

    Thank, the way you explain it becomes clearer

  • @SS-bv3xh
    @SS-bv3xh 4 года назад

    that intro though .
    nice series!

  • @sriyaarra7886
    @sriyaarra7886 4 года назад

    your tutorials are just awesome!!! its so clear, thank you!

  • @idaresay357
    @idaresay357 6 лет назад

    Very helpful!! This obviously deserves more views.. Thank you for your amazing videos!

  • @vaios6317
    @vaios6317 3 года назад

    You save my LIFE !

  • @AnubhavMadhav
    @AnubhavMadhav 4 года назад

    You made it really very easy.

  • @user-wn4sm8uw9c
    @user-wn4sm8uw9c 4 года назад +2

    Ha, fancy intro music XD Great work, thank you so much for creating this playlist!

  • @bhaskarjyotidas6619
    @bhaskarjyotidas6619 6 лет назад +1

    Please continue this series..., Sir

  • @technicalilm8999
    @technicalilm8999 6 лет назад +3

    As always, brilliant

  • @kennethanyanwu5849
    @kennethanyanwu5849 4 года назад

    U are a legend man no words.. please how do u add the productimage model to the form so that users can upload images

  • @sinaebr7337
    @sinaebr7337 6 лет назад +5

    thank a lot man
    pls dont stop make this sries

  • @ygcjayalal
    @ygcjayalal 4 года назад

    great person for ever

  • @cgpmth6449
    @cgpmth6449 3 года назад +1

    how can i auto-fill a foreign key field and hide it in the form?

  • @manboyangel
    @manboyangel 5 лет назад

    Thanks for this! Your tutorial has made everything so clear now

  • @quincykao749
    @quincykao749 3 года назад

    Hey, in your tutorial for Django 24, i was expecting you to explain what class meta model and fields and what they do. I tried to go to djangoproject, but they don't really explain it as well. Is it ok if you can explain a bit and reply here

  • @LearnWithNoor036
    @LearnWithNoor036 4 года назад

    Thank you. Very helpful.

  • @KevinTempelx
    @KevinTempelx 4 года назад

    Thank you!

  • @AnubhavMadhav
    @AnubhavMadhav 4 года назад

    How can we apply css to such forms, as we know that they're paragraph tags, but they do not have any class or id, so that we can target each and apply some css and get a desired designed form?

  • @kisansmemories106
    @kisansmemories106 4 года назад +1

    why my informations are not saved in database why?

  • @neginshirvani8310
    @neginshirvani8310 4 года назад

    Hi I have a question I did all you did and also checked the code but I do not get the boxes to add input and save data and Idk why:(

  • @mashoodkiyani3992
    @mashoodkiyani3992 6 лет назад

    thank u this is amazing,the way you teach

  • @abhijitroy8931
    @abhijitroy8931 3 года назад

    When the elements are dynamic in nature like drag and drop name , customer .. how do we define Class models , please help with some other vide.

  • @ApartmentAngelsFireStarters
    @ApartmentAngelsFireStarters 3 года назад

    I tried the same exact thing, it does get requests but it doesn't save to the database(havevnt checked through database viewer) and it doesn't even show up in the admin pannel

  • @charlesneukuckatz1869
    @charlesneukuckatz1869 3 года назад

    How do you add multiple django forms to one page?

  • @Andy..
    @Andy.. 6 лет назад

    Dude you are awesome

  • @imenebenyamina5388
    @imenebenyamina5388 5 лет назад

    yeah i'm gonna say it I LOVE YOU JUSTIN thank you so much

  • @siddhartht1345
    @siddhartht1345 5 лет назад

    Can u help with this, Iam using Sublimtext editor, I cannot use jinja2 code, sublim can't access the the code. Eg: Have used {% csrf_token %}, It is giving an error like this
    [Forbidden (403)
    CSRF verification failed. Request aborted. CSRF token missing or incorrect]. How can I overcome with this issue, should I have to install any package. Please, help me with it.

  • @razmiqayelyan1497
    @razmiqayelyan1497 3 года назад

    How do I specify boolean in modelsForm?

  • @amansinghal9745
    @amansinghal9745 5 лет назад

    sir while creating a form error is prompt that ModelForm could be created either by using fields or exclude

  • @tarungulati5171
    @tarungulati5171 5 лет назад

    The music though 😎😎

  • @lalitmittal1159
    @lalitmittal1159 6 лет назад +1

    i am getting an error of KeyError: ('products', 'products')

  • @amerahalqahtani2913
    @amerahalqahtani2913 6 лет назад

    thank you pleas i have Q how can i insert data into table in postgresql ???

  • @dinokrivic5486
    @dinokrivic5486 4 года назад +1

    How can i prevent form from submitting when I refresh the page?without redirecting...

    • @agentNirmites
      @agentNirmites 4 года назад

      write some frontend javascript.

    • @sarfrazkhan8057
      @sarfrazkhan8057 4 года назад +2

      I am also facing the same problem and i don't want to write Js for this, is there any other way??

    • @dinokrivic5486
      @dinokrivic5486 4 года назад +1

      @@sarfrazkhan8057 I figured that out.Just use HttpResponseRedirect and redirect to the same page.

    • @agentNirmites
      @agentNirmites 4 года назад +3

      @@sarfrazkhan8057 Validate the form and redirect only of it is valid, else render response as usual.
      Somewhat better, not that much...

    • @sarfrazkhan8057
      @sarfrazkhan8057 4 года назад +1

      Thank you guys, otherwise it's going to take more time...

  • @marwadarwish9418
    @marwadarwish9418 6 лет назад

    I wish I could hear your answer... I'd like to save my form data to a csv file. Is it possible?? +CodingEntrepreneurs

    • @user-mj4wn5dv9p
      @user-mj4wn5dv9p 4 года назад

      docs.djangoproject.com/en/3.0/howto/outputting-csv/

  • @keerthivasang1178
    @keerthivasang1178 6 лет назад

    Hi sir Nice expo Thanks lot!!!!

  • @ahsanhabib2577
    @ahsanhabib2577 6 лет назад +1

    Great ... Aren't you going to cover class based views? All of your series are good. But this one seems more organized ...

  • @sarveshsingh3569
    @sarveshsingh3569 5 лет назад

    can you add choice field dynamically and also the admin can add the items in choices. like in that project add choice field in model than admin/user can add items in choice field.
    please

  • @anoopkg8681
    @anoopkg8681 6 лет назад

    nice vedio,

  • @jorgedavalos5663
    @jorgedavalos5663 4 года назад +1

    ok so if makemigrations, and migrate are executed at the same time, why isnt there a command that do both ? is kind of annoying to write both down every time.

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  4 года назад +1

      Well. makemigrations prepares for database changes. If you mess up on the Django side, you won’t automatically mess up the database too. Thus, two commands.

    • @ericcartman2294
      @ericcartman2294 4 года назад

      you may also, anytime go through django core files and change that command to whatever you like if you are brave enough.

    • @jorgedavalos5663
      @jorgedavalos5663 4 года назад +1

      @@ericcartman2294 thanks for the tip, but yeah! still dont feel brave enough to do so, nevetheless it's been 5 months since that question but i understand django better now =). thanks

  • @NatteKrentenbol
    @NatteKrentenbol 6 лет назад

    For me It keeps saying "This field is required" above every field although I entered something in every single field. Can anyone tell me why this keep happening. I already made 2 new Django projects but it keeps happening...

  • @ctd100
    @ctd100 4 года назад

    Can't get the button to show up on the page for some reason :/

    • @ctd100
      @ctd100 4 года назад

      Nvm. Got it figured out

  • @kritikamadan1142
    @kritikamadan1142 3 года назад

    the products are not adding into.

  • @kenji3110
    @kenji3110 6 лет назад

    I made the form... but for some reason it changes the order of fields. Sometimes title is first, then description and price and sometimes it puts them in different order.

    • @JustinMitchel
      @JustinMitchel 6 лет назад

      KenJi that doesn’t make sense. What have you done to customize the form?

    • @kenji3110
      @kenji3110 6 лет назад

      IDK... I restarted the server... and now it looks fine. I didn't change anything, everything is default

  • @wisamkhalid5663
    @wisamkhalid5663 6 лет назад

    thanks a lot..so when we saved the form we used form.save() . my question when we use form.save(commit=True) ? is it optional to use any? Thanks

  • @tourefousseni5707
    @tourefousseni5707 5 лет назад

    It 's very interest, you can teach me in private on django ?

  • @ivonherms
    @ivonherms 4 года назад

    Sadly mine didn't update the database :(

    • @AnubhavMadhav
      @AnubhavMadhav 4 года назад

      Have you written 'method = POST'? in html template?

  • @opopopiddq
    @opopopiddq 6 лет назад

    cannot see video

  • @looploop6612
    @looploop6612 4 года назад +1

    everyone uses class Meta, but no one can explain it.

  • @hamoudarawdh1265
    @hamoudarawdh1265 6 лет назад

    can u do series about angular 6 from scratch till being professional i fucking want that ,

  • @PP-hs5sg
    @PP-hs5sg 5 лет назад

    I am getting valueerror

  • @TheMrDemage
    @TheMrDemage 3 года назад

    Like like like

  • @govindaramana.n.586
    @govindaramana.n.586 4 года назад

    dai suthama puriyala da

  • @derekkroeker4582
    @derekkroeker4582 3 года назад

    Model X

  • @i_am_a_real_cat1443
    @i_am_a_real_cat1443 3 года назад

    gangnamstyle

  • @ackrman
    @ackrman 6 лет назад +1

    Django channels

  • @Zielu13
    @Zielu13 2 года назад

    Have you ever thought about armwrestling,? You have massive hands.

    • @CodingEntrepreneurs
      @CodingEntrepreneurs  2 года назад +1

      World champ 3 years in a row. Look it up

    • @Zielu13
      @Zielu13 2 года назад

      @@CodingEntrepreneurs 🤣🤣

  • @dupmanngemuse5786
    @dupmanngemuse5786 4 года назад

    So you know a way how to store checkboxinput to a specific non primarykey field in django like ib this question stackoverflow.com/questions/61125585/django-sql-server-hot-to-bind-checkbox-values-to-a-specific-id-in-database ?

  • @vikrantsrivastava4083
    @vikrantsrivastava4083 4 года назад

    When you use some line or something in the next video and say we will use more of these and will explain then...please don't!! Just give a basic gist of what it does, if you can't go much in detail. So, some Users like myself may only want to watch a part of video and don't have to actually watch the complete series.
    P.S.: I just wanted to create a form for some other project that I'm working on. So i didn't want to watch complete series.