geodjango using mysql geodjango using mysql python python

geodjango using mysql


set django.contrib.gis.db.backends.mysql in your settings.DATABASE engine db config.


Does your MySQL have spatial data types installed? What do you get if you do:

CREATE TABLE geom (g GEOMETRY);

If that doesn't recognise the GEOMETRY type, then you need to upgrade/recompile/reconfigure your MySQL.