Reputation: 17
I've made a portfolio website with django and bootstrap framework. Now i'm trying to display multiple videos in my homepage. So through admin panel i uploaded 3 videos and in template used video tag. In model FileField for upload and also summary for video description. After setup and runserver my website homepage is showing just video description and video player and controls. There is no such videos or thumbnails to play. Please help me on that matter. Thanks in Advance.
Model view and template code images are as follows-
Upvotes: 1
Views: 2046
Reputation: 17
Problem solved by changing Videos=Video.objects.all() & Then inside the template by writing {{ video.video.url }} That's it!
Upvotes: 1