Why video is not displaying when i click on upload

Solution 1:

views.py:

def showvideo(request):

    lastvideo= Video.objects.all()

    context= {'lastvideo': lastvideo }
    return render(request, 'master/video.html', context)

templates: video.html:

<video width='400' controls>
    <source src='{{ videofile.url }}' type='video/mp4'>
       Your browser does not support the video tag.
</video>

</html>