diff options
author | CruiseDevice | 2018-02-19 15:01:22 +0530 |
---|---|---|
committer | CruiseDevice | 2018-02-19 15:01:22 +0530 |
commit | b84648fa3730d8b258bbc4ada0dcbde5a033f747 (patch) | |
tree | d97bfe8f70e43a58a2d7f8fe7a61a00554ba4f14 /webcam/views.py | |
parent | 6f76f85bc264a58cea717ca8f8bd60b411828dd5 (diff) | |
download | SBHS-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.py | 8 |
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}) |