所以我走過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 –