🔴 Build Blog Website with Django Web Framework [ Python ]

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

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

  • @BekBrace
    @BekBrace  3 ปีที่แล้ว +11

    🔴 Heads Up : Thanks to CodeDjango, we have spotted a small error in the minute 20:32 , the path for the detail_post page should be :
    path('/', views.DetailView.as_view(), name="post_detail")
    So, the difference is DetailView instead of PostView.

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

      sir this is the error i get when i change it
      path('/', views.DetailView.as_view(), name="post_detail")
      AttributeError: module 'blog.views' has no attribute 'DetailView'

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      @@saahndongransom718 Look, clone the GitHub repo and check out for the differences and eventually you'll find the bug :)

    • @saahndongransom718
      @saahndongransom718 ปีที่แล้ว

      @@BekBrace thank you sir,i have clone code but can't still find the bug

    • @iMan_CWI
      @iMan_CWI ปีที่แล้ว

      @@saahndongransom718 hey, good day. Were you able to find the solution to this attribute error?

  • @racoonfong8097
    @racoonfong8097 3 ปีที่แล้ว +2

    I'm an absolute beginner to Django, just installed Django recently & started learning with this video!!
    Thank you so much. Already subscribed :)

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

      Thank you my friend 🙂

  • @codedjango
    @codedjango 3 ปีที่แล้ว +5

    @20:32 I think it should be........... path('/', views.DetailView.as_view(), name="post_detail"),

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

      Thank you CodeDjango, It’s exactly that ; just a silly copy and paste from my side | thanks for pointing it out , cheers

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

      indeed otherwise read more btn won't
      work 😄

  • @HPDServices
    @HPDServices 3 หลายเดือนก่อน

    I really love your contents sir Bek.
    You are the best in Tech!

    • @BekBrace
      @BekBrace  3 หลายเดือนก่อน

      I appreciate that!

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

    Damn! Nice Video:) Really inspiring 💯

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

      Thank you Tim Seidl 🙏

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

      @@BekBrace You're welcome! Just started a TH-cam channel by myself. Videos like yours are nice to watch and inspire me.

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

      @@timseidl8850 Good luck my friend

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

    Hi, thx for the video. I'm trying to get the Read More button to open the full post page. Could you help me?
    Thank you

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      Check out the GitHub code in the description 🙂

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

    Verry clear Thanks

  • @bansonayodeji1812
    @bansonayodeji1812 ปีที่แล้ว

    This is helpful thanks but I’m still confused how to import the Base, index, post_detail, sidebar.html files

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

    hello sir,the tuitorial is great.when i press READ MORE buttom to write the full post nothing is happening.
    i have follow the toitorial well.sir i can figure out were the error is coming from.
    thanks very much sir

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      Hello my friend. Do you have any error messages appearing ?

    • @saahndongransom718
      @saahndongransom718 ปีที่แล้ว

      @@BekBrace yes Sir.when i press READ MORE notthing is happening

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

    I think I found a gold mine. Subscribed

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      Thank you so much my friend :)

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

    hi Bek. quick and clear tutorial :) - more and more django projects, man

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

    thank you so much sir!

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      You're welcome my friend

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

    how can i upload images to my blogpost?

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      Go to the Django playlist, you will find a video there explaining how to render images to your Django page

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

    At 13:09 error:'choices' must be an iterable containing (actual value, human readable name) tuples.

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      You can download the source code and compare to find the difference

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

    I get an import error at 13:23 .. Says, attempted relative import with no known parent package. Plz help

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

      To be honest, I don't know what is the origin of this error, as I will need to review your code, but maybe this will help you:
      forum.djangoproject.com/t/attempted-relative-import-with-no-known-parent-package/6844
      This error is related to import a model or a class from a relative / absolute path

  • @MalikaikhusnobodMansurova
    @MalikaikhusnobodMansurova 9 หลายเดือนก่อน

    hello, have an error in 13:30 Posts isn't showing in site administrator . did everything like u did. don't know what to do

    • @BekBrace
      @BekBrace  8 หลายเดือนก่อน

      check out the code and cross check

  • @brancode404
    @brancode404 ปีที่แล้ว

    Please make a video on deploying production level React + Django Rest Framework + tailwind + Postgresql to Digital ocean with Docker

  • @thinhtran1577
    @thinhtran1577 2 ปีที่แล้ว

    Thank you very much, the video is useful

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      Glad to hear my friend

  • @blogblocks8370
    @blogblocks8370 2 ปีที่แล้ว

    How do I allow new lines in blog post ?

  • @manasapbl7715
    @manasapbl7715 ปีที่แล้ว

    Sir...
    While running the code.... It's coming error like the app name does not have any module...... Please correct the error sir

    • @BekBrace
      @BekBrace  ปีที่แล้ว

      Check out the code on GitHub and see where the error is

  • @myview6733
    @myview6733 5 หลายเดือนก่อน +1

    Hi sir, I got template does not exists error

    • @BekBrace
      @BekBrace  5 หลายเดือนก่อน

      I am going to look into that whenever i got the time, but I know there are a lot of errors, so probably I am going to redo this porject in a better way - so stay tuned | That is probably going to take place in June [next month]

  • @bigbiteskitchens1022
    @bigbiteskitchens1022 2 ปีที่แล้ว

    Can you explain the sidebar.html (about info)

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      What do you want to know exactly ?

    • @bigbiteskitchens1022
      @bigbiteskitchens1022 2 ปีที่แล้ว

      @@BekBrace I want some more information for this blog, this is simple one you know, so I want to continue or make it some extra work it. Like original blog site

  • @oldtoxicflux
    @oldtoxicflux 2 ปีที่แล้ว

    Thanks dude it help me a lot :D

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

      Glad to hear, my friend

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

      @@BekBrace do you know what i should do if i want to upload ar image or a picture to the post?

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      @@oldtoxicflux of course. You can check out my Django video to add static assets to your Django project, you will find how to add an image and render it properly.

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

    Can you please create an exchange rate app with Django?

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

      Hello Leon.
      This is a very good idea for a video, thank you.

  • @s.abdulkabeer595
    @s.abdulkabeer595 2 ปีที่แล้ว

    i cant see the Posts app in admin
    can u pls it through

    • @BekBrace
      @BekBrace  2 ปีที่แล้ว

      Can you rephrase your question, please?