from django.http import HttpResponse from django.shortcuts import render # Create your views here. def iot_view(request): # 你的视图逻辑 return HttpResponse("This is the /iot/ endpoint.")