Это видео недоступно.
Сожалеем об этом.

Update and Edit Venues - Django Wednesdays #10

Поделиться
HTML-код
  • Опубликовано: 14 авг 2024
  • In this video I'll show you how to update and edit Venues from the website with Django and Python.
    Updating records in the database is pretty easy with Django, we just need to do a few minor things to set everything up and get it started.
    We'll create a page that holds a form that will be pre-populated with the record data for a particular Venue. All you have to do is make your changes to the data and click the Update button, Django will take care of the rest!
    Timecodes
    0:00​​ - Introduction
    1:25 - Create Update_venue.html Page
    2:13 - Create URL For update_venue.html Page
    3:10 - Create update_venue View
    4:50 - Add Links To Update Individual Venues
    7:50 - Add VenueForm To update_view View
    10:08 - Add Form to update_view.html Page
    11:52 - Automtically Fill Out Form With Venue Info
    12:42 - Save Update and Redirect Back To Venue Page
    14:20 - Change Update Link To A Button
    15:13 - Conclusion
    #codemy #django

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

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

    ▶️ Watch Entire Django Wednesdays Playlist ✅ Subscribe To My RUclips Channel:
    bit.ly/35Xo9jD bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
    ▶️ Get The Code
    bit.ly/3sJpeV6

  • @rishabs9835
    @rishabs9835 Год назад +7

    I have spent 3+ hours looking for exactly this information, cannot express my relief and happiness to find this video enough.

  • @exoZelia
    @exoZelia 10 месяцев назад +2

    You're the best source of django tutorials for sure

    • @Codemycom
      @Codemycom  10 месяцев назад

      Thanks! Tell your friends!

  • @user-mo8de5hl9g
    @user-mo8de5hl9g 3 года назад +8

    You are the best programming teacher I've ever seen

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

    I have purchased a membership. Consider this as a thank you for the video rows you have published for free.

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

      Awesome...appreciate it!

  • @Zep-Floyd
    @Zep-Floyd 2 года назад +1

    Thank you so much, I was having a headache trying to update an user on my project. You're awesome!

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

      Glad you got it sorted out!

  • @SmileyJack.
    @SmileyJack. 2 года назад +1

    12:42 Didn't watch this part and spent hours troubleshooting the form - had POST, had changes in Payload (Chrome Inspector), but no changes in the DB because I didn't save().

  • @plusk343
    @plusk343 3 года назад +2

    You've got some real positive energy 😁

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

    I can't wait... This was a very much needed video for my project in school. Thank you. Now I just need to do delete.

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

    Man thanks a lot, this video could've saved me hours if I found this first. I had a problem with the instance only, all good!

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

    I have a problem with Update btn, its not working and dosent save any changes!! Django version 4.0.3
    Im writing my code step by step like video! but its seems some of codes needs to change in this version of Django

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

      No, it has nothing to do what the version of Django, you just typed something wrong. You'll have to rewatch the videos and check your code for whatever error you made.

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

    Like. Great as always. One quick question. Will you make videos that about react or angular or anything like that?

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

      You never know, but js isn't my thing

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

    Thank u! Your video are very helpful!

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

      Glad you enjoyed it!

  • @H0ldThat
    @H0ldThat Год назад

    hey, what would I need to change in order to edit a form on the same page as the Update button, instead of having to go to a whole new page after clicking the Update button?

  • @steal7389
    @steal7389 Год назад

    Excellent video! Youre the fucki** best on da world

  • @marnissimahjoub6687
    @marnissimahjoub6687 Год назад

    if a delete the condition 'form.is_valid()' the error show ''venueform' object has no attribute 'cleaned_data''

  • @salmanalsaffar8040
    @salmanalsaffar8040 3 года назад +2

    If I made my website and the styling is from bootstrap wont they hit me with a copyright?

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

      lol no, bootstrap is open source and it was made for people to use in this way. That's why it exists.

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

      @@Codemycom ooh I've been wasting my time making my own css style, thanks for your reply.

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

    great session thanks. a bit struggling with the update link in not being able to execute as an url..the code is as you have written but i get an error looking like this " The current path, % url 'update-venue' venue.id %, didn’t match any of these " please help

  • @sipiyama7227
    @sipiyama7227 Год назад

    Matur suwun

  • @TheLKStar
    @TheLKStar Год назад

    I'm using a more complex custom form that encompasses a few models with foreignkey relations, so that simple "instance" line doesn't apply, at least not that way

    • @Codemycom
      @Codemycom  Год назад

      So you're saying that you're doing something completely different, and therefore someone in this video doesn't work for you? Weird lol

  • @bieberbalazs6826
    @bieberbalazs6826 Год назад

    Great video. I a m learning fast and easy from your tutorial. You are explaining it properly.
    I have a Question. If i work with a lots of data there is any point to use API or Django can handled it by itself? Does Django become slower if needs to handdle lots of data?

    • @Codemycom
      @Codemycom  Год назад +1

      Not sure what you mean by "use API". Data is data, it doesn't really matter what volume of data it is.

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

    Thank you very much for this video, if possible a tutorial for uploading data from a single xls file in several models django.

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

    Thank you so much.

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

    How to make custom Registration and how to change the default USENAME feild while Login

  • @saimadhuripadarthi504
    @saimadhuripadarthi504 Год назад

    I am geeting an error "tuple has no attribute get" how to solve that

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

    I completed my website step by step based on your videos. At this moment, I need some advice to upload my website on the network possibly for free. Please let me know if you have any video to help me or any other suggestions. Thank you so much.

    • @Codemycom
      @Codemycom  2 года назад +2

      Yes, I have videos on uploaded sites to heroku for web hosting

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

    Great 💥🔥

  • @MOVIEKICKS
    @MOVIEKICKS Год назад

    Does this work if primary key "id" is set to auto_increment?

    • @Codemycom
      @Codemycom  Год назад +1

      all primary keys auto_increment by default..so..yeah

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

    Your the best, anyway how do you pull integers from database so you can add or multiply with another int value. It gives me a TypeError

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

      it might be pulling them as strings. Simply wrap them in an int() function.

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

    hey man, can you make a video tutorial on how to configure django to get or upload images on a different server.. like if your website is accepting image upload from users

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

      I've done that on another django blog playlist I have

  • @marnissimahjoub6687
    @marnissimahjoub6687 Год назад

    i did like all video excepet modify the admin area

  • @marnissimahjoub6687
    @marnissimahjoub6687 Год назад

    form.is_valid() return false every time and i can't save the update date

    • @Codemycom
      @Codemycom  Год назад

      what did you do differently from the video?

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

    will you be doing more in this series?

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

    And what if I want to edit a single field instead of the whole form? I got stuck on this 😅

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

      Nothing changes...just update whatever single field you want and leave the rest as they are

  • @Waldi-sb8ep
    @Waldi-sb8ep 3 года назад

    It was great but wasn't that the long I guess you can just import UpdateView and will do the job ? !!

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

      no, you need everything from the video to make it work.

    • @Waldi-sb8ep
      @Waldi-sb8ep 3 года назад

      @@Codemycom get it

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

    :-)cheers

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

    👍

  • @user-vn8ec5hr3b
    @user-vn8ec5hr3b Год назад

    thome

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

    2nd comment