Added Scanner identification and MQTT handling

This commit is contained in:
2022-04-13 15:43:20 +02:00
parent 4da41fe1cd
commit 4b7234fa68
18 changed files with 595 additions and 76 deletions

View File

@@ -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
})
})