由于我升级到 Django 1.4.5 并删除并重新创建了一个MySQL 5.5.8
数据库,因此我收到此错误消息./manage syncdb
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Failed to install index for my_app.WorldBorder model:
(1464, "The used table type doesn't support SPATIAL indexes")
设置:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.gis', <---- here
'pipeline',
'widget_tweaks',
'my_app',
'south',
'modeltranslation',
'djcelery',
)
但是我已经下载并编译了 Geos 并且到目前为止它一直有效:
wget http://download.osgeo.org/geos/geos-3.3.0.tar.bz2
tar xjf geos-3.3.0.tar.bz2
auto-apt run ./configure
make -j4
sudo checkinstall
sudo ldconfig
我错过了什么吗?