How to Render an HTML Template as Response | Django Framework | Django Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2021
  • In this part of the full Django tutorial, you will learn about converting a template into Django project. You will also learn how to include HTML files in Django.
    HTML projects are rendered to bring them into response, and for that, you need to import a library. Firstly, you need to call the program base directory which will bring the whole path of the main folder.
    The function used to convert HTML to Django is Django. shortcut library. Every detail and action is implemented in a practical way so you can understand it all. You can change the background color, size, font size, and width of the program as well.
    Our trainer will explain it all with the help of proper practical examples which will help you understand the concept better.
    We have made a complete playlist on the Django framework from Python; you can watch more videos from the playlist to learn in-depth about it.
    WsCubeTech - Digital Marketing Agency & Institute.
    ✔ We can help you to create a Digital Marketing plan to take your business to new heights.
    ✔ Offering Job Oriented Most Latest, Updated, and advanced Digital Marketing Courses with Practical, Hands-on Live Projects Training & Exposure.
    For More information : Call us at : +91- 92696-98122
    Or visit at www.wscubetech.com/
    There is a complete playlist of Digital Marketing Interview Tips & Tricks available -
    th-cam.com/users/playlist?list...
    There is a complete playlist of Facebook Ads available -
    Link: • Facebook Advance SMO &...
    There is a complete playlist of Twitter Ads available.
    Link: • Twitter Ads | All Twit...
    ✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -
    👉 Instagram - / kushagrabhatiaofficial
    👉 LinkedIn - / kushagra-bhatia
    👉 Facebook - / kushagrawscubetech
    Please don’t forget to Like, Share & Subscribe
    ►Subscribe: bit.ly/wscubechannel
    ► Facebook: / wsubetech.india
    ► Twitter: / wscube
    ► Instagram: / wscubetechindia
    ► LinkedIn : / wscube-tech
    ► TH-cam: / wscubetechjodhpur
    ► Website: wscubetech.com
    -------------------------------------| Thanks |--------------------------
    #Django2022 #HTMLTemplate #DjangoFramework

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

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

    😎Hey, thanks for watching! We’d love to know your thoughts/doubts here in the comments.
    🔴 To learn Django online with regular LIVE CLASSES, enroll now: forms.gle/GHasHRhehT2v1BTf6
    👉For professional self-paced certification courses (pre-recorded), visit: bit.ly/Pre-Recorded-Course
    👉Don’t forget to SUBSCRIBE to our channel for more such videos & valuable content: bit.ly/TH-cam-WsCubeTech

  • @SAli-ld6hh
    @SAli-ld6hh 2 ปีที่แล้ว +10

    Getting page not found error after following each and every step

  • @eyemovie824
    @eyemovie824 11 หลายเดือนก่อน +2

    Your teaching style is great Sir ,,,,,

  • @beastexperiments6155
    @beastexperiments6155 4 หลายเดือนก่อน +1

    Thank you so much. It helped me to understand clearly and also with hands on practical. Best explanation.

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

    Thank you, sir....your videos really help us a lot...

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

    Thank you, Sir video videos really help us a lot...

  • @Allin-dd8gj
    @Allin-dd8gj ปีที่แล้ว +1

    Bahot hi badiya sir ❤

  • @manendrakumarkushwaha8676
    @manendrakumarkushwaha8676 11 หลายเดือนก่อน +1

    Very helpful video
    Thank you sir

  • @SumanKumari-cn3wo
    @SumanKumari-cn3wo หลายเดือนก่อน +1

    Hello sir....I got error (Page not found)if I gave blank while giving the path for homePage but when I put as same as the previous url ...then it is working.
    So plz help me....what should to do?

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

    Thank you sir 🔥🔥Really helpful video form basics
    Sir project bhi le aiyee django pai

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

    Superbly play excellent ❣️❣️❣️❣️

  • @api-dev-and-integration
    @api-dev-and-integration 2 ปีที่แล้ว

    well explained . thanks

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

    Thank you for this

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

    Awesome, bhai!!!

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

    Best tutorials

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

    Thank You So Much Sir

  • @DeepaKeshriMCA--
    @DeepaKeshriMCA-- หลายเดือนก่อน

    I stuck in the homepage section will you please resolve it. So I can proceed with the next videos.

  • @aviralyadav1282
    @aviralyadav1282 8 หลายเดือนก่อน +1

    Hi @wscubetech sir, I am getting this error while rendering templates html page.
    TypeError at /
    render() missing 1 required positional argument: 'template_name'

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

    very good sir

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

    amazing

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

    too good

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

    super

  • @ashishbhopte8149
    @ashishbhopte8149 4 หลายเดือนก่อน

    Thankyou

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

    sir, mere html and css code me suggestion nahi aa rahe he or html file me logo Django ka Dj vala show ho raha he pls help me🙏🙏🙏🙏

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

    Hii sir Good morning

  • @DeepaKeshriMCA--
    @DeepaKeshriMCA-- หลายเดือนก่อน

    Home page getting error

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

    Hi, I am facing a weird issue, I just created a template folder and inside that I have index.html the thing which is weird is I did not do anything in setting.py, urls.py and view.py but it still shows up my index.html, why is that happening ?

    • @zuberkhan-kn7iu
      @zuberkhan-kn7iu ปีที่แล้ว

      share code

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

      I am not able to render the html template- Template Doesnot exist at/ error comes

    • @zuberkhan-kn7iu
      @zuberkhan-kn7iu ปีที่แล้ว

      Did you add , "DIRS": [BASE_DIR, 'templates'] , in settings ?
      And
      When we create our project, we get 2 files with same name,
      1st is our project folder, and inside Django create one more folder with same name.
      so make sure to create templates In side the main project , not in folder created by Django itself.

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

      @@zuberkhan-kn7iu yes all the above suggestions are done still same error

    • @zuberkhan-kn7iu
      @zuberkhan-kn7iu ปีที่แล้ว

      Spelling mistakes?
      And sometimes we need to run server again and again, refresh dont work

  • @YASHPATEL-qm4dc
    @YASHPATEL-qm4dc 11 หลายเดือนก่อน

    It would have become more simpler if you would have shared all tha code files with us in a zip folder.

  • @kandelaabhilash6464
    @kandelaabhilash6464 10 หลายเดือนก่อน

    Brother Html file is displaying , but the content is not displaying

    • @MohitTumane
      @MohitTumane 10 หลายเดือนก่อน

      same problem

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

      Same problem

  • @ANKITKUMAR-qv6lh
    @ANKITKUMAR-qv6lh ปีที่แล้ว

    HTML write karne ka suggestion nhi aa rha h sir jabki mere me extension install h

    • @AnkitSingh-go6qq
      @AnkitSingh-go6qq 8 หลายเดือนก่อน +1

      extension reinstall kro bhai

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

      ​@@AnkitSingh-go6qqlekin extension konsa install karna vo to bataeye???

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

    Page not found error, even everything I did very carefully

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

      change the path of templates folder. Put it in the app directory.

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

      @@standman007 app directory?

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

      @@standman007 please explain

    • @Direct-action
      @Direct-action ปีที่แล้ว +1

      @@divyanshuanand3396 save karo project and then run

  • @Rooster-777
    @Rooster-777 6 หลายเดือนก่อน

    💚

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

    Html page to show hora hai, par kuch bhi css ni aaya

    • @kandelaabhilash6464
      @kandelaabhilash6464 10 หลายเดือนก่อน

      Same issue did you find the issue

    • @kandelaabhilash6464
      @kandelaabhilash6464 10 หลายเดือนก่อน

      For html is not displaying, but css is displaying

  • @ShivamSingh-sv6rh
    @ShivamSingh-sv6rh 4 หลายเดือนก่อน

    typeError at / error!!!!!1

    • @sonushet8364
      @sonushet8364 9 วันที่ผ่านมา

      Write return render (request, "templates\index. html")

    • @sonushet8364
      @sonushet8364 9 วันที่ผ่านมา

      Write return render (request, "templates\index. html")

    • @sonushet8364
      @sonushet8364 9 วันที่ผ่านมา

      Write return render (request, "templates\index. html")

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

    dear sir plz reply

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

    यहां render का मतलब भी समझा दे हिंदी में।

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

      Html file ko display karna

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

    how to fucking understand this if english is your second language

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

    AttributeError: module 'django.views' has no attribute 'homepage'
    please help