root / crm / robocrm / views.py @ 7cc67b05
History | View | Annotate | Download (416 Bytes)
1 | 988e217a | Julian Binder | # Create your views here.
|
---|---|---|---|
2 | 7cc67b05 | Julian Binder | from django.http import HttpResponse |
3 | |||
4 | def index(request): |
||
5 | return HttpResponse("Hello again, world!") |
||
6 | 314bdec9 | Julian Binder | |
7 | def roboauth(request, rfid_tag, mach_number): |
||
8 | 7cc67b05 | Julian Binder | return HttpResponse("Hello, world!") |
9 | #r = robocrm.objects.filter(rfid=rfid_tag)
|
||
10 | #auth_machines = r.machines.filter(id=mach_number)
|
||
11 | #if auth_machines.count() > 0 :
|
||
12 | # return HttpResponse("1")
|
||
13 | #else
|
||
14 | # return HttpResponse("0")
|