Tag Info

New answers tagged


admin.site.register(Poly, admin.GeoModelAdmin) or admin.site.register(Poly, admin.OSMGeoAdmin) # for openstreet map


I would add the constraint in a migration. Or, in something more pretty: a custom field. https://docs.djangoproject.com/en/1.6/howto/custom-model-fields/#writing-a-field-subclass Good luck.


Take a look at this tutorial using Leaflet instead of OpenLayers. It worked for me and the docs and plugins are great. The GeoDjango tutorial does fall short for displaying maps.

Top 50 recent answers are included