New answers tagged geodjango
I found the answer it's nearly the same as a normal django admin. class MyModelAdmin(admin.OSMGeoAdmin): pass admin.site.register(MyModel, MyModelAdmin) Juste replace admin.ModelAdmin by admin.OSMGeoAdmin
You could try using geoalchemy2. Personally I would look at using the Object Relational Mapper (ORM) model for working with your data, for example: from sqlalchemy import create_engine # Enter your database connection below engine = create_engine('postgresql://gis:gis@localhost/gis', echo=True) from sqlalchemy.ext.declarative import declarative_base from ...
Top 50 recent answers are included