title: passing video_url to html template in django
body: <p>I am trying to dispaly video in my html page by passing url as dict to template in django view named as succes</p>
  <pre><code>def success(request):
      url_video=&quot;/media/video1.mp4&quot;
  
      return render(request,&quot;payment/success.html&quot;,{&quot;url_video&quot;:url_video})
  </code></pre>
  <p>my template code is all clear it has no errors
  i am getting this error on command prompt</p>
  <pre><code>Not Found: /succes/media/video1.mp4
  </code></pre>
  <p>I don't understand why i get success/ in front of url i have passed.The video file is in media/video1.mp4 location but it is not getting displayed.let me know any changes i need to make.thanks</p>
  <p><strong>EDIT:</strong></p>
  <p>TEMPLATE:</p>
  <pre><code>&lt;!DOCTYPE html&gt; 
  &lt;html&gt; 
  &lt;head&gt; 
  &lt;style&gt; #myHeader { background-color: lightblue; color: black; padding: 40px; text-align: center; } 
  &lt;/style&gt; 
  &lt;/head&gt; 
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot;&gt; 
  &lt;body&gt; 
  &lt;h1 id=&quot;myHeader&quot;&gt;&quot;{{ url_video}}&quot;&lt;/h1&gt; &lt;br&gt; 
  
  &lt;video width=&quot;&quot;height=&quot;&quot;controls&gt; 
      &lt;source src=&quot;{{ url_video}}&quot; type=&quot;video/mp4&quot;&gt; 
  &lt;/video&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>