我正在尝试以注册表格的形式获取Google地图,以使用户输入其位置 我需要谷歌地图,但我得到了这张地图... https://i.stack.imgur.com/u317n.png
我正在使用以下代码:
from django.contrib.gis.db import models as gismodel
from django.db import models
class mapshow(models.Model):
name = models.CharField(max_length=200)
address = models.CharField(max_length=100)
city = models.CharField(max_length=50)
location = gismodel.PointField(u"longitude/latitude",
geography=True, blank=True, null=True)
objects = models.Manager()
def __unicode__(self):
return self.name
`