Delete a Blog Post - Django Blog #7

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 53

  • @Codemycom
    @Codemycom  4 ปีที่แล้ว +3

    ▶️ Watch Entire Django Blog Playlist ✅ Subscribe To My TH-cam 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

  • @akshitgulyan3935
    @akshitgulyan3935 ปีที่แล้ว +1

    It's a very nicely explained lecture John sir

  • @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

  • @vukspasojevic2396
    @vukspasojevic2396 2 ปีที่แล้ว +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.

  • @ruhiziki6361
    @ruhiziki6361 3 ปีที่แล้ว

    Best tutorial on django

  • @dayeonlee1116
    @dayeonlee1116 3 ปีที่แล้ว +1

    Thank you for the good tutorial video! Like your energy too!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Thanks for watching!

  • @akdrummer1797
    @akdrummer1797 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +2

      I think we talk about authentication later in this playlist

  • @siumhossain-
    @siumhossain- 4 ปีที่แล้ว +1

    you can reverse the post using {%for post in object_list reversed %} in home.html

  • @shawnbeans7389
    @shawnbeans7389 4 ปีที่แล้ว +1

    Good Job Codemy

  • @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?

  • @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?

  • @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 ปีที่แล้ว +1

      Thanks for your kind words. You can search "one to one relationship" in the django docs and read about it.

  • @SendiSiradj
    @SendiSiradj 3 ปีที่แล้ว

    is there a tutorial for deploying django web app to the Internet?

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว

      Yep, I have many

  • @avronilchakraborty2453
    @avronilchakraborty2453 3 ปีที่แล้ว

    the page is giving
    HTTP ERROR 405 Method Not Allowed (POST)
    on clicking delete. How can I fix that?

    • @CS21B058SUNKUGARITEJESWARAREDD
      @CS21B058SUNKUGARITEJESWARAREDD ปีที่แล้ว +1

      while inheriting you may have inherited DetailView class instead DeleteView for the class DeletePostView.

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว +1

    Awesome

  • @milosjovanovic4218
    @milosjovanovic4218 3 ปีที่แล้ว

    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 3 ปีที่แล้ว +1

      ok, found it, when I copied previous class forgot to change what should delete class inherit (left CreateView)

  • @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 ปีที่แล้ว +1

      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 ..

  • @윤유상-n8b
    @윤유상-n8b 3 ปีที่แล้ว

    I finish making CRUD in my blog thanks

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      Great 👍

  • @miraccan00
    @miraccan00 4 ปีที่แล้ว

    can we add slug field :) ?

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      You can do anything you want :-p

  • @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 ปีที่แล้ว +1

      @@harshdeepsingh9324 there's only a few django playlists...you'll have to dig around

    • @harshdeepsingh9324
      @harshdeepsingh9324 3 ปีที่แล้ว

      @@Codemycom Okay Thankyou

  • @bijenadhikari
    @bijenadhikari 3 ปีที่แล้ว

    you are awesome.

  • @RamanKumar-uo1kf
    @RamanKumar-uo1kf 4 ปีที่แล้ว +1

    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

  • @oktapiancandra1806
    @oktapiancandra1806 4 ปีที่แล้ว +2

    First:v uwu

  • @miraccan00
    @miraccan00 4 ปีที่แล้ว

    Delete Post really cool :D maybe you can try :D ahahaha

    • @Codemycom
      @Codemycom  4 ปีที่แล้ว

      Lots of ways to do anything

  • @azarsirdash
    @azarsirdash 3 ปีที่แล้ว

    Very Very G💋💋💋💋💋d