所以我走过GeoDjango内置教程和我卡在此错误消息:为PostgreSQL和PostGIS的变化LC_CTYPE使用
[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 setting requires encoding LATIN1.
我GOOGLE了,看了一些Ubuntu的文档,但无济于事。任何有识之士将不胜感激!
我使用默认的Vagrant Box lucid 32来测试我的设置。
我居然落得这样做是CREATEDB -E UTF8 -T template0中--locale = en_US.utf8 template_postgis –
'--locale =的en_US.UTF-8'作为的PostgreSQL 9.4.5 –