Advertisement
Guest User

views.py

a guest
Jan 18th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. from django.shortcuts import render
  2. from engine.functions import tempF,lcdF
  3.  
  4. def index(request):
  5.     if 'temp' in request.POST:
  6.         lcdF.printTemp(0,2)
  7.     elif 'time' in request.POST:
  8.         lcdF.printTime()
  9.     return render(request, 'system/index.html')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement