我有三个用于模拟数据的JSON文件。
JsonServer.js
{
"customPanel": [
{
"id": 1,
"title": "top",
"dataSet": "top1"
},
{
"id": 2,
"title": "bottom",
"dataSet": "bottom1"
}
],
"defaultPanel": [
{
"id": 1,
"title": "topDefault",
"dataSet": "topDefault1"
}
]
}
settings.json
{}
并且所有人都可以使用http://localhost:4000/settings获取数据
但是当我打电话给http://localhost:4000/settings/customPanel时,显示空白响应,例如from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
point = Point(float(latitude), float(longitude))
query = Restaurant.objects.filter(location__dwithin=(point, D(km=km))).order_by('location')