▶️ 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
Hello. I am a beginner in django and I have problem , when I try to delete an object from my database, the obj.delete() doesn’t work. I go to admin and there the still is
Maybe a noob question but is it safe to delete objects just by passing the Id to a view? I’ve stumbled across a few tutorials stressing the need to perform crud operations strictly via post requests using a csrf token.
If you delete a venue, it appears that all events that use that venue will also be deleted. I was thinking that when we go to delete a venue that is used by one of more events, we should ask the user if he's sure he wants to delete venue because events associated with it will be deleted too. Am I missing something here?
Yeah that would probably be smart :-p though presumably if you want to delete a venue you want to do that SO that it's events will be deleted too...eventually we'll build in the ability to only allow the people who added a venue the ability to delete it
And also, when I add a new event and delete an older event, the ID of the new event changes to a new ID. So when I click on delete, the ID on the url will be an older ID.
▶️ 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 liked from my all 2 accounts! ;)
Awesome, thanks!
How to delete a file in a project directory when the model instance is deleted or updated in Django?
Hey there , what's about react with Django tutorial ?
I don't really use react much
@@Codemycom Ohh that is to bad, it's impossible to learn it from another youtubers
Great Sir! Please sir, now cover how to create our own custom error pages(404, 500). Error pages with navbars and other stuff. Thanks for the video.
Noted
How about in class base views?
Hey there, this might be late but i was wondering if there is any way to recover deleted data from models?
Not that I know of, but google it to be sure.
I want to delete or rather flush the whole database say every midnight, is there a way around it?
Sure, but I don't have any videos on that. You'd probably want to set up a cron job.
Thank you dude for the explanation 😁
Sure thing
Thank you so much for sharing. Kindly share how to delete project files using the path stored in the database.
I won't delete the id ,at the same time I want active field is false like active is false means the id is deleted how to I do
If I delete an event, the venue of the event also deletes. Any help?
is this method of deleting hard or soft
Ik this has nothing to do with this video but what is the event for the arrow key in key board binding.
for what? lol
Hello. I am a beginner in django and I have problem , when I try to delete an object from my database, the obj.delete() doesn’t work. I go to admin and there the still is
Check your code for errors
Maybe a noob question but is it safe to delete objects just by passing the Id to a view? I’ve stumbled across a few tutorials stressing the need to perform crud operations strictly via post requests using a csrf token.
you can add loginrequired decorator.. that way only a user can delete it..
If you delete a venue, it appears that all events that use that venue will also be deleted. I was thinking that when we go to delete a venue that is used by one of more events, we should ask the user if he's sure he wants to delete venue because events associated with it will be deleted too. Am I missing something here?
Yeah that would probably be smart :-p though presumably if you want to delete a venue you want to do that SO that it's events will be deleted too...eventually we'll build in the ability to only allow the people who added a venue the ability to delete it
I just don't understand where the event.id in the button comes from
this is given by django for each unique instance.
can you share a link of CRUD event project code
Not sure what you're referring to, but all my code is on github, links are usually in the pinned comment.
And also, when I add a new event and delete an older event, the ID of the new event changes to a new ID. So when I click on delete, the ID on the url will be an older ID.
No that shouldn't be possible. What have you done differently from the videos?
amazing Video ......Thank you for all Video
Very Welcome!
Amazing. Love the repetition of the process. Really helps with catching on to the django flow.
Glad you liked it
can we delete event without using any primary key by only name in the database?
No, what if more than one even have the same name? More than one event cannot have the same primary key.
Hi how to connect DJANGO database with Firebase and make real world application
I don't have any videos on that
@@Codemycom
I am requesting to make a video on that . Please
Hi John, another great vid. I had a question: Is it possible to enter the link with the id in the address bar to delete a event/venue?
Sure
Can you tell me how to hide/delete the recent activity part from the interface?
What recent activity from what interface?
you helped me so much, thank you!
Very welcome!
will you make a video on how to save the db to mysql?
you don't save the db to mysql, you can use mysql as the database...pretty sure I have videos on that somewhere.
Good and excelent
Thanks!
👏👏👏
Thanks!