title: show ip camera live feed in django webpage
body: <p>code in which cameafeedview is defined in the url section please help where i am wrong .Tired this code also but no help
  <a href="https://stackoverflow.com/questions/49680152/opencv-live-stream-from-camera-in-django-webpage">Opencv Live Stream from camera in Django Webpage</a>     </p>
  
  <pre><code>    def camerafeedView(request):
          return render(request,'camerafeed.html')
  
      def gen(camera):
          video = cv2.VideoCapture()
          video.open("rtsp://user:pass@IP")
          video.release()
          ret,image =  self.video.read()
          ret,jpeg = cv2.imencode('.jpg',image)
          while True:
              frame = jpeg.tobytes()
              yield(b'--frame\r\n'
              b'Content-Type: image/jpeg\r\n\r\n' + frame + b'\r\n\r\n')
  
          def camerafeed(request): 
              return StreamingHttpResponse(gen(),content_type="multipart/x-mixed-replace;boundary=frame")
  </code></pre>
  
  <p><strong>Template code:</strong></p>
  
  <pre><code>   &lt;html&gt;
         &lt;head&gt;
             &lt;title&gt;Video Streaming Demonstration&lt;/title&gt;
             &lt;h1&gt;test&lt;/h1&gt;
         &lt;/head&gt;
         &lt;body&gt;
             &lt;h1&gt;Video Streaming Demonstration&lt;/h1&gt;
             &lt;img src="{% url 'camerafeed' % }}"&gt;
         &lt;/body&gt;
     &lt;/html&gt;
  </code></pre>
  
  <p>it show only html page but no live camaera feed ..please help where i am wrong here</p>