我在玩GeoDjango并有一些疑问。我会很感激任何评论和建议。 这是我的问题。首先,我定义这个(抽象)类: from django.contrib.gis.db import models
from django.contrib.gis.geos import *
class LocatableModel(models.Model):
country = models.CharF
所以我走过GeoDjango内置教程和我卡在此错误消息: [email protected]:~$ createdb -E UTF8 template_postgis
createdb: database creation failed: ERROR: encoding UTF8 does not match locale en_US
DETAIL: The chosen LC_CTYPE s