geodjangoを使用してアプリを作成しています。 私はそうのようなモデルがあります:私のデータベースに国境を重ねて2つの以上のオブジェクトが存在することができ class WorldBorder(models.Model):
name = models.CharField(max_length=50)
mpoly = models.MultiPolygonField()
エラーが発生しました。 と私はそれを修正するためにどのように何のideiaを持っていないが、見て、これは誤りです:あなたが見ることができるよう TypeError: as_view() takes 1 positional argument but 2 were given
これが私の「model.py」ページのコードです。 from django.db import models
from
これは、@ Nargiza:3d distance calculations with GeoDjangoでこの問題を解決するための道のりに思いがけない動作です。 Distance機能上のDjangoのドキュメントに続き: Accepts two geographic fields or expressions and returns the distance between them, as a