summaryrefslogtreecommitdiff
path: root/webcam/views.py
diff options
context:
space:
mode:
authorCruiseDevice2018-02-19 15:01:22 +0530
committerCruiseDevice2018-02-19 15:01:22 +0530
commitb84648fa3730d8b258bbc4ada0dcbde5a033f747 (patch)
treed97bfe8f70e43a58a2d7f8fe7a61a00554ba4f14 /webcam/views.py
parent6f76f85bc264a58cea717ca8f8bd60b411828dd5 (diff)
downloadSBHS-2018-Rpi-b84648fa3730d8b258bbc4ada0dcbde5a033f747.tar.gz
SBHS-2018-Rpi-b84648fa3730d8b258bbc4ada0dcbde5a033f747.tar.bz2
SBHS-2018-Rpi-b84648fa3730d8b258bbc4ada0dcbde5a033f747.zip
initial commit
Diffstat (limited to 'webcam/views.py')
-rw-r--r--webcam/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/webcam/views.py b/webcam/views.py
index 54f74ee..9451695 100644
--- a/webcam/views.py
+++ b/webcam/views.py
@@ -6,6 +6,8 @@ from django.http import HttpResponse
from myadmin.views import checkadmin
from sbhs_server.tables.models import Board, Webcam
+print 'inside webcam views.py'
+
def reload(req, mid):
""" Refreshes the image of the SBHS
@@ -25,8 +27,10 @@ def show_video(req):
board = req.user.board
image_link = board.image_link()
- mid = str(board.mid)
-
+ mid = str(board.mid)
+ # if mid < 10:
+ # mid = '0'+str(mid)
+ # print 'mid',mid
# image_link = board.image_link()
return render(req, "webcam/show_video.html", {"image_link": image_link, "mid": mid})