Delete Meeps - Django Wednesdays Twitter #26

preview_player
Показать описание
In this video we'll delete Meeps for our Twitter Clone App with Django and Python.

Deleting Meeps is pretty simple, but we need to make sure that people can only delete their own meeps.

We'll also need to make sure they're logged in first before we let them delete a meep.

#django #codemy #JohnElder

Timecodes

0:00​​ - Introduction
0:54 - Create a New URL
1:20 - Create a Delete_Meep View
3:03 - Create Delete Link On Profile Page
5:37 - Make Sure User Owns Meep
7:33 - Hide Delete Link On Other Profiles
8:33 - Delete Meep
9:18 - Error Handle Manual Browsing
10:53 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch Django Wednesdays Twitter Playlist ✅ Subscribe To My YouTube Channel:
▶ See More At: ✅ Join My Facebook Group:
▶ Get The Code

Codemycom
Автор

Just a improvement suggestion.
get_object_or_404 gives error if there is no object found with the given id. So checking using "if meep:" in views will not work if the meep you are trying to delete is not there as it already gives error.
It can be improved by using try and catch

gqij
Автор

For some reason, my site stopped showing font awesome icons and i don't know how to fix that.

Jka-npfp
Автор

can you talk Mr john about flet framework that use python to make mobile apps like flutter

youssefmostafa-vlzq
Автор

Hello sir, i like your videos and i want to ask can you make a video on how to make a youtube video downloader mobile apk using python and kivy

GodisOneandSupremeTruth