Delete a Blog Post - Django Blog #7

  Рет қаралды 25,139

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 53
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Django Blog Playlist ✅ Subscribe To My KZbin Channel: bit.ly/3bWN6wj 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
@vukspasojevic2396
@vukspasojevic2396 3 жыл бұрын
The reverse can be used only in function-based views and reverse_lazy on class-based views since in python, class is evaluated on import of the class so it would raise an error.
@Codemycom
@Codemycom 3 жыл бұрын
Not so much
@akshitgulyan3935
@akshitgulyan3935 Жыл бұрын
It's a very nicely explained lecture John sir
@Codemycom
@Codemycom Жыл бұрын
thanks
@misovnick
@misovnick 2 жыл бұрын
Hi John. First of all many thanks for your videos!! I love to watch them. Could you please explain in more detail the reverse_lazy() function you used in this video? Just a short description in comments section will be more than enough. Thank you
@dayeonlee1116
@dayeonlee1116 3 жыл бұрын
Thank you for the good tutorial video! Like your energy too!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks for watching!
@ruhiziki6361
@ruhiziki6361 3 жыл бұрын
Best tutorial on django
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@FOODINATORS.21
@FOODINATORS.21 Жыл бұрын
thanks your videos are super easy to undertand but am facing problem on post delete it deletes the post but give error 404 and doest redirect
@Codemycom
@Codemycom Жыл бұрын
what did you do differently from the video?
@akdrummer1797
@akdrummer1797 3 жыл бұрын
Great video. Just one thing. How do we make it so that only the author of that particular blog can delete it. Right now I can delete blogs of other users also, I dont want that.
@Codemycom
@Codemycom 3 жыл бұрын
I think we talk about authentication later in this playlist
@siumhossain-
@siumhossain- 4 жыл бұрын
you can reverse the post using {%for post in object_list reversed %} in home.html
@letslearnui
@letslearnui 3 жыл бұрын
how we can delete a record simply by loading a modal on the same page without creating a new template / page. Any tutorial?
@abhishekshukla7234
@abhishekshukla7234 4 жыл бұрын
sir thank you for your video, please clarify if I had given a premium in my blog so how I show premium profile on the top from the normal profile
@Codemycom
@Codemycom 4 жыл бұрын
Sorry, I don't know what you mean by premium.
@abhishekshukla7234
@abhishekshukla7234 4 жыл бұрын
@@Codemycom Thank You for your attention, premium means to add some of our users to the premium and show there profile on top or can be simply understood freelancer after paying amout our profile show on the top for bitting ..
@harshdeepsingh9324
@harshdeepsingh9324 3 жыл бұрын
Please tell how to put a success message if the post is deleted successfully
@Codemycom
@Codemycom 3 жыл бұрын
Yes I have videos on that already
@harshdeepsingh9324
@harshdeepsingh9324 3 жыл бұрын
@@Codemycom Can you please tell in which playlist I can get it...
@Codemycom
@Codemycom 3 жыл бұрын
@@harshdeepsingh9324 there's only a few django playlists...you'll have to dig around
@harshdeepsingh9324
@harshdeepsingh9324 3 жыл бұрын
@@Codemycom Okay Thankyou
@SendiSiradj
@SendiSiradj 3 жыл бұрын
is there a tutorial for deploying django web app to the Internet?
@Codemycom
@Codemycom 3 жыл бұрын
Yep, I have many
@shawnbeans7389
@shawnbeans7389 4 жыл бұрын
Good Job Codemy
@Codemycom
@Codemycom 4 жыл бұрын
Thanks
@avronilchakraborty2453
@avronilchakraborty2453 3 жыл бұрын
the page is giving HTTP ERROR 405 Method Not Allowed (POST) on clicking delete. How can I fix that?
@CS21B058SUNKUGARITEJESWARAREDD
@CS21B058SUNKUGARITEJESWARAREDD Жыл бұрын
while inheriting you may have inherited DetailView class instead DeleteView for the class DeletePostView.
@miraccan00
@miraccan00 4 жыл бұрын
can we add slug field :) ?
@Codemycom
@Codemycom 4 жыл бұрын
You can do anything you want :-p
@윤유상-n8b
@윤유상-n8b 4 жыл бұрын
I finish making CRUD in my blog thanks
@Codemycom
@Codemycom 4 жыл бұрын
Great 👍
@milosjovanovic4218
@milosjovanovic4218 4 жыл бұрын
I am getting error: Using ModelFormMixin (base class of DeletePostView) without the 'fields' attribute is prohibited. Only if I add fields in my class it will work.... anyone knows why?
@milosjovanovic4218
@milosjovanovic4218 4 жыл бұрын
ok, found it, when I copied previous class forgot to change what should delete class inherit (left CreateView)
@rangabharath4253
@rangabharath4253 4 жыл бұрын
Awesome
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@dilipspk
@dilipspk 4 жыл бұрын
Hi sir, love to see u and your lecture. I want to do clarify with you by next lecture on following ● I have created registration form for django default and phone number verification as well. I used basic html form but I want to use the django's robust form but something went wrong while saving data I weed one to one relationship for profile with user While saving it is giving an error something anonymous error.... Thank u sir
@Codemycom
@Codemycom 4 жыл бұрын
Thanks for your kind words. You can search "one to one relationship" in the django docs and read about it.
@RamanKumar-uo1kf
@RamanKumar-uo1kf 4 жыл бұрын
Sir i request you to make online multiple choice django project
@Codemycom
@Codemycom 4 жыл бұрын
Might do that in the future
@ssmindwasher3378
@ssmindwasher3378 3 жыл бұрын
Yes I will pay you I.need to delete wordpress blog post can't log in have own
@Codemycom
@Codemycom 3 жыл бұрын
Not sure what you mean, I don’t do consulting
@ssmindwasher3378
@ssmindwasher3378 3 жыл бұрын
@@Codemycom 1site.wordpress.com say 1 post kia gya h I delete karni h
@bijenadhikari
@bijenadhikari 4 жыл бұрын
you are awesome.
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@oktapiancandra1806
@oktapiancandra1806 4 жыл бұрын
First:v uwu
@Codemycom
@Codemycom 4 жыл бұрын
woot!
@azarsirdash
@azarsirdash 4 жыл бұрын
Very Very G💋💋💋💋💋d
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@miraccan00
@miraccan00 4 жыл бұрын
Delete Post really cool :D maybe you can try :D ahahaha
@Codemycom
@Codemycom 4 жыл бұрын
Lots of ways to do anything
Order Blog Posts By Date - Django Blog #8
13:35
Codemy.com
Рет қаралды 23 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 128 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Add A Rich Text Editor To A Django Blog - Django Blog #21
8:13
Codemy.com
Рет қаралды 68 М.
Update and Edit Blog Post - Django Blog #6
14:53
Codemy.com
Рет қаралды 45 М.
How To Upload Images With Django - Django Blog #26
17:59
Codemy.com
Рет қаралды 79 М.
Add Blog Post Page - Django Blog #4
19:14
Codemy.com
Рет қаралды 56 М.
Create Blog Like Button - Django Blog #18
19:35
Codemy.com
Рет қаралды 54 М.
Blog Category Pages - Django Blog #13
16:13
Codemy.com
Рет қаралды 29 М.
Change User Password Page - Django Blog #25
18:18
Codemy.com
Рет қаралды 39 М.
Style Our Blog With Bootstrap - Django Blog #3
19:51
Codemy.com
Рет қаралды 49 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН