Added ASGI server for websocket using the sample chat application as starting point

This commit is contained in:
2022-04-02 19:30:58 +02:00
parent 13cc1c3f57
commit 5cf49b7d47
17 changed files with 209 additions and 14 deletions

10
booker/views.py Normal file
View File

@@ -0,0 +1,10 @@
from django.shortcuts import render
def index(request):
return render(request, 'booker/index.html')
def scanner(request, scanner_id):
return render(request, 'booker/scanner.html', {
'scanner_id': scanner_id
})