Это видео недоступно.
Сожалеем об этом.
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
▶️ 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
I have spent 3+ hours looking for exactly this information, cannot express my relief and happiness to find this video enough.
Happy to help!
You're the best source of django tutorials for sure
Thanks! Tell your friends!
You are the best programming teacher I've ever seen
Hey thanks!
I have purchased a membership. Consider this as a thank you for the video rows you have published for free.
Awesome...appreciate it!
Thank you so much, I was having a headache trying to update an user on my project. You're awesome!
Glad you got it sorted out!
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().
You've got some real positive energy 😁
lol thanks
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.
coming soon :-)
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!
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
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.
Like. Great as always. One quick question. Will you make videos that about react or angular or anything like that?
You never know, but js isn't my thing
Thank u! Your video are very helpful!
Glad you enjoyed it!
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?
Excellent video! Youre the fucki** best on da world
thanks!
if a delete the condition 'form.is_valid()' the error show ''venueform' object has no attribute 'cleaned_data''
If I made my website and the styling is from bootstrap wont they hit me with a copyright?
lol no, bootstrap is open source and it was made for people to use in this way. That's why it exists.
@@Codemycom ooh I've been wasting my time making my own css style, thanks for your reply.
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
Add your curly braces {% %}
Matur suwun
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
So you're saying that you're doing something completely different, and therefore someone in this video doesn't work for you? Weird lol
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?
Not sure what you mean by "use API". Data is data, it doesn't really matter what volume of data it is.
Thank you very much for this video, if possible a tutorial for uploading data from a single xls file in several models django.
Thank you so much.
How to make custom Registration and how to change the default USENAME feild while Login
I am geeting an error "tuple has no attribute get" how to solve that
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.
Yes, I have videos on uploaded sites to heroku for web hosting
Great 💥🔥
Thanks!
Does this work if primary key "id" is set to auto_increment?
all primary keys auto_increment by default..so..yeah
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
it might be pulling them as strings. Simply wrap them in an int() function.
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
I've done that on another django blog playlist I have
i did like all video excepet modify the admin area
form.is_valid() return false every time and i can't save the update date
what did you do differently from the video?
will you be doing more in this series?
Yes soon
And what if I want to edit a single field instead of the whole form? I got stuck on this 😅
Nothing changes...just update whatever single field you want and leave the rest as they are
It was great but wasn't that the long I guess you can just import UpdateView and will do the job ? !!
no, you need everything from the video to make it work.
@@Codemycom get it
:-)cheers
Cheers!
👍
:-)
thome
2nd comment
Nice!