[Fixed]-Geodjango using mysql

36👍

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

5👍

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.

Leave a comment