我是 Geodjango 新手,希望在以下方面获得帮助:
我有一个用于 GeoDjango 应用程序的 MultiPolygonField 字段,并希望在我的视图上显示它,就像它在 django admin 上显示一样酷
比如说我有
def index(request):
"Index,main view"
border = WorldBorders.objects.get(name='Italy')
return render_to_response('world/index.html', {'user': request.user, 'border': border}, context_instance=RequestContext(request))
然后在 world/index.html 上,显示边框的方式是什么,就像在 django admin 上一样?
提前感谢所有回复!