How To Add Article Snippets - Django Blog #22

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 38

  • @bjaysam5475
    @bjaysam5475 4 года назад +2

    Post Notification turned on. I'm addicted to Django now😂😂

  • @Codemycom
    @Codemycom  4 года назад

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

  • @mtrkhan566
    @mtrkhan566 4 года назад +1

    I am getting a lot from your Django blog series, thanks again

    • @Codemycom
      @Codemycom  4 года назад

      Glad you're enjoying it!

  • @MRSBchannel
    @MRSBchannel 4 года назад +1

    I’ve been watching your tutorials! Thank you so much 😊

  • @idle_facts
    @idle_facts 4 года назад

    Thanks for making my isolation awesome.

  • @bigsandip
    @bigsandip 4 года назад

    You are great teacher. I have been watching your Django series and loving it .

    • @Codemycom
      @Codemycom  4 года назад

      Thanks! Glad you're enjoying the videos!

  • @mereram9536
    @mereram9536 4 года назад

    I only watch your videos for python
    Best channel for learning programming

  • @f.christaintanghanwaye3113
    @f.christaintanghanwaye3113 4 года назад

    Thank you very much

  • @johnsolly
    @johnsolly 2 года назад

    Hi John!
    The slice operation is actually breaking my blog site when I use the ckeditor code snippet plugin. What seems to be happening is that post.content|slice:":200"|safe is cutting off the code snippet too early. This occurs if you happen to have a code snippet very early on in your post.
    My current workaround is to either move the code snippet further down in my post, or change the slice length. Do you have any suggestions of what I could do to solve this issue? Ideally, I think I need to find another way to add article snippets because the slice operation is naive (sometimes it cuts off words prematurely).
    Perhaps I need to create a 'preview field' for each post and display this preview on the home page instead of slicing the article content.
    Any advice is appreciated. Love your videos!

  • @Tomekytyt
    @Tomekytyt 4 года назад

    Great tutorials! I have one question - how to stretch this body field for post edit for it to mach the container width? (like other fields)

  • @brendaotin
    @brendaotin 4 года назад

    Hey, I finished creating a blog and hosted it, but I would like to know how I can add 'Read also' at the bottom of each post detail page so that my readers can click on the links to the other blog posts and get redirected to the rest of my blog posts?

  • @athishga3096
    @athishga3096 3 года назад

    Hello sir.. I've tested the snippet tag line by adding a new post(snippet post).. But on adding the post it shows some error - {(Hidden field author) Select a valid choice. That choice is not one of the available choices.}..Please help me to solve this error...

    • @guanghuang2517
      @guanghuang2517 Месяц назад

      i had the same issue too. for me it was the var name in the add_post.html. I had var name = "{{ user.username }}. it should be user.id, as shown below.
      var name = "{{ user.id }}";
      ...

  • @abdullahhazari918
    @abdullahhazari918 3 года назад

    Are you also will made mind reading course :D ? Because when im watch your video and i see some problems which i will get, the answear is in next one XD

    • @Codemycom
      @Codemycom  3 года назад

      Ha! Glad you're enjoying the videos!

  • @hibas7568
    @hibas7568 4 года назад

    I'm getting an operational error when i make migrations for the new field snippet. Kindly help

    • @Codemycom
      @Codemycom  4 года назад

      The error usually tells you exactly what's wrong. If not, google the error.

  • @mereram9536
    @mereram9536 4 года назад

    We didn't add bootstrap to home page where all blogs are visible

    • @Codemycom
      @Codemycom  4 года назад

      Yes we did. It's on base.html which gets called by all pages. The navbar is bootstrap, you can see it right there on the home page.

  • @mereram9536
    @mereram9536 4 года назад

    Can you add the getbootstrap blog example template plz...

  • @mereram9536
    @mereram9536 4 года назад

    Just add bootstrap to home page as I am creating my website......

  • @mereram9536
    @mereram9536 4 года назад

    Plz add bootstrap to home page

    • @Codemycom
      @Codemycom  4 года назад

      It's already there, it has been added to all pages.

  • @neocoginvid
    @neocoginvid 3 года назад

    Hello John - First - thank you so much for creating this awesome series! I am really hooked. My question is: Whether we can truncate the blog content to show them in the snippet. Basically using something like a truncate.blog.post(0..100)? Second our blog has too many posts on the home page. How do we use a pagination feature to add to the blog. Thank you so much!

  • @mereram9536
    @mereram9536 4 года назад

    Plz beautify home page......

    • @Codemycom
      @Codemycom  4 года назад +2

      Why? We're learning Django here, not CSS and Design