Added Scanner identification and MQTT handling
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
from django.shortcuts import render
|
||||
from django.views.generic import ListView
|
||||
from .models import Scanner
|
||||
|
||||
|
||||
def index(request):
|
||||
return render(request, 'booker/index.html')
|
||||
class IndexView(ListView):
|
||||
model = Scanner
|
||||
template_name = 'booker/index.html'
|
||||
|
||||
|
||||
def scanner(request, scanner_id):
|
||||
return render(request, 'booker/scanner.html', {
|
||||
'scanner_id': scanner_id
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user