#13 Django tutorials | Passing Dynamic Data in Html - part 2

preview_player
Показать описание


Django is a high-level Python-based free and open-source web framework, which follows the model-view-template (MVT) architectural pattern.
It is maintained by the Django Software Foundation (DSF).
Django's primary goal is to ease the creation of complex, database-driven websites.
Some well-known sites that use Django include the Public Broadcasting Service, Instagram, Mozilla, The Washington Times, Disqus, Bitbucket, and Nextdoor.

Editing Machines & Monitors :

Facebook:

Subscribe to our other channel:

Donation & Support:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

8:20 Dynamic image soure format did not work for me. The format has worked for me.

discovery-dxry
Автор

Thank you sir!! I really enjoy coding, with your easy explaination, best django-tutorial-series on YouTube.

shivanikhedekar
Автор

Can't stop commenting about how wonderful the teaching is!

shreyasingh
Автор

people spend weeks and months to learn HTML but your course with zero HTML knowledge anyone can master it with real life project . such a class!

alexikamran
Автор

Hey, Alien Every time you are making me surprise, hats off to your way of explanation.

gulamali
Автор

Use src = "static/images/{{dest.img}}" instead of src = "{% static 'images/{{dest.img}}' %}"..NOW, images still load .
Thankuuhh so much sir fir this wonderful tutorial...god blessed uh tons of love✨✨

nikhilmahajan
Автор

Don't wanna sound in love or anything, but what a likeable guy, channel and tutorial.. hats off sir.. thank you

llewellynhattingh
Автор

why the image isn't changing when I replaced an image of destination_3.jpg with another image in the assets folder?

arslankabeer
Автор

thank u sir .i really loved it .awesome django tutorial in youtube . i Loved ur way of teaching . i today started watching this video and i watched first 13 videos .all the 13 videos are very helpful.

kishorkhade
Автор

Great video, I want to know if there is a way to pass PIL images or array of images (not the string of their file path). I want to dynamically access image files from a cloud folder.

sachinbhoi
Автор

It's awesome sir this is the best tutorial for django in YouTube and keep uploading the videos sir

kknervr
Автор

Another way to add a dynamic path at IMG Src tag without changing any thing much the following way - so you don't need to declare any variable separately:
<img src="{% static 'images' %}/{{dest.image_id}}" alt="">

Sandeep-ujkk
Автор

Hi Sir..Good Evening last few days back itself I'm learning your tutorials its so Superb..and ur explanation about each concept is very clear manner..really thanks for sharing ur knowledge and effort :)

yogeshwarikarnan
Автор

Hello sir, i want to ask something. if we want to add testimonial class and its object testi = testimonial() then how i define it in return render. help. can't write two objects(dictionary) "Check out 3:04". after dest dictionary how i put testi dictionary.

haanijaani
Автор

Did everything as you said but only one image instead of three loads for me... How can I solve it?

TheMantasMLT
Автор

At 8:23 gingr format is included inside "" is this good??

banti
Автор

how can we pass a variable data from python file to html template in django?

atharvakatre
Автор

sir from where i can learn full command and full interface of django with jinja too

abcrectify
Автор

I have tried smt different for parsing images, It can be helpful for you guys.



In views.py



instead of dest1.img = 'destination_1.jpg'
I wrote dest1.img =




In index.html I wrote this;


src="{{ dest.img}}" alt="">




It worked.

oguzgurkanbilir
Автор

Thank you sir are really working hard for us🙂🙂🙂

pankajshrivastava
welcome to shbcf.ru